150 Commits

Author SHA1 Message Date
Johannes Schickel
aaff7b1736 DREAMWEB: Make GPL headers consistent in themselves. 2014-02-18 02:39:34 +01:00
D G Turner
617f6179c1 DREAMWEB: Change various loop variables to uint, rather than size_t.
This is partly for readability and partly to avoid any possible
portability issues i.e. though they should be the same, size_t is
defined by system headers, whereas uint is defined within our build
system.

Also, replaced a array size calculation with our ARRAYSIZE macro.
2012-11-30 12:08:55 +00:00
Johannes Schickel
89abab97e3 JANITORIAL: Remove trailing whitespaces.
Powered by:
git ls-files "*.cpp" "*.h" "*.m" "*.mm" | xargs sed -i -e 's/[ \t]*$//'
2012-09-26 04:17:55 +02:00
D G Turner
628cfa3d47 DREAMWEB: Objectify Sound functions & data into DreamWebSound class.
This change should have no functional change, but makes the sound code
more decoupled, modular and readable, prior to attempting a fix for
bug #3528164 - "DREAMWEB: missing sound effects/music cues during main
title".
2012-05-31 05:16:10 +01:00
Torbjörn Andersson
261fc2f4be DREAMWEB: Simplify some uses of randomNumber()
Our random number generator isn't restricted to producing numbers
between 0 and 255. We can just ask it for the desired range.
2012-03-03 13:55:04 +01:00
Bertrand Augereau
1098e6b79a DREAMWEB: The rain processing has its own cpp file 2012-03-03 14:18:05 +01:00
Filippos Karapetis
e2aaba4a69 Merge pull request #154 from fingolfin/dreamweb-cleanup
Dreamweb: Mark structs packed, minor tweaks
2011-12-28 10:29:53 -08:00
Filippos Karapetis
eaed1b725a DREAMWEB: Replaced most isCD calls with calls checking for speech
This is quite useful for devices with limited storage, where the user
can use the CD version without its speech files
2011-12-28 18:54:17 +02:00
Max Horn
8f2b8e821f DREAMWEB: Cleanup 2011-12-28 16:36:17 +01:00
Willem Jan Palenstijn
77b8491b8b DREAMWEB: Remove unused Sprite fields 2011-12-28 15:19:59 +01:00
Willem Jan Palenstijn
4e207dbc7a DREAMWEB: Clean up Sprite::_updateCallback 2011-12-28 15:19:59 +01:00
Filippos Karapetis
279746fcf0 DREAMWEB: Completely remove all of the runtime, and move everything into DreamWebEngine
Also, remove dead code (allocateMem/deallocateMem)
2011-12-28 15:07:17 +02:00
Willem Jan Palenstijn
57e940f678 DREAMWEB: Move all saved variables to a GameVars struct
The data segment is now completely unused.
2011-12-28 13:12:22 +01:00
Filippos Karapetis
26f1643e86 DREAMWEB: Remove a lot of unused/duplicate constants and move some of them to dreambase.h 2011-12-28 12:15:52 +02:00
Filippos Karapetis
ed72efe05b DREAMWEB: Remove more global variables 2011-12-28 05:47:09 +02:00
Willem Jan Palenstijn
4c2d2684ea DREAMWEB: Mass-move variables out of data
This has been done by an automated search/replace, culling unused
variables in the process. The remaining variables in data are all stored
in savegames.
2011-12-28 02:36:52 +01:00
D G Turner
a09fdaa0b1 DREAMWEB: Move 4 volume related variables out of data blob. 2011-12-28 01:31:24 +00:00
D G Turner
56191e3928 DREAMWEB: Move 3 sound related variables out of data blob. 2011-12-27 23:49:35 +00:00
Willem Jan Palenstijn
914bf3d519 DREAMWEB: Remove setdat, freedat segments 2011-12-27 23:05:27 +01:00
Willem Jan Palenstijn
15a1f41e8a DREAMWEB: Remove reels segment 2011-12-27 23:04:58 +01:00
Willem Jan Palenstijn
d9aed2e00b DREAMWEB: Convert room text into TextFiles 2011-12-27 23:03:40 +01:00
Willem Jan Palenstijn
a7cdc342b3 DREAMWEB: Convert reel segments into GraphicsFiles 2011-12-27 23:03:05 +01:00
Willem Jan Palenstijn
90cb52b7f6 DREAMWEB: Streamline graphics file access 2011-12-27 23:01:58 +01:00
Willem Jan Palenstijn
df7bb24184 DREAMWEB: Create MapFlags struct, remove backdrops segment 2011-12-27 18:01:33 +01:00
Willem Jan Palenstijn
7bae1022ed DREAMWEB: Remove mapData segment 2011-12-27 17:56:50 +01:00
Filippos Karapetis
51d0a07902 DREAMWEB: Fix a regression in showRain() 2011-12-27 10:43:10 +02:00
Filippos Karapetis
bda312b61b DREAMWEB: Remove more unused/unnecessary variables 2011-12-27 10:16:06 +02:00
D G Turner
5256919434 DREAMWEB: Move kSubtitles out of data blob. 2011-12-27 04:12:16 +00:00
Filippos Karapetis
d503838fd6 DREAMWEB: Moved the two rollEndCredits functions together in print.cpp and renamed them to rollEndCreditsGameWon and rollEndCreditsGameLost 2011-12-26 03:15:47 +02:00
Max Horn
dbe5b50cd3 DREAMWEB: Port rollEm() to C++ 2011-12-26 01:41:56 +01:00
Willem Jan Palenstijn
8e36de736e DREAMWEB: Minor cleanup 2011-12-24 14:41:12 +01:00
Willem Jan Palenstijn
8e79608a1d DREAMWEB: Move sprite table out of buffers 2011-12-23 23:46:38 +01:00
Willem Jan Palenstijn
814793de49 DREAMWEB: Move rainlist out of buffers 2011-12-23 23:46:38 +01:00
Willem Jan Palenstijn
109acaab3c DREAMWEB: Move mapflags out of buffers 2011-12-23 23:46:38 +01:00
Willem Jan Palenstijn
49877b2319 DREAMWEB: Move all reel functions to DreamBase 2011-12-18 16:34:57 +01:00
Willem Jan Palenstijn
6dd09b8935 DREAMWEB: Convert checkForExit 2011-12-17 19:19:08 +01:00
Max Horn
010714ce5b DREAMWEB: Move more to DreamBase; fix regression in introMonks1() 2011-12-16 17:44:36 +01:00
Max Horn
202f9d18f1 DREAMWEB: Move more things to DreamBase; cleanup some code 2011-12-16 17:43:33 +01:00
Filippos Karapetis
30b4037ffb DREAMWEB: Port 'poolguard' to C++
This is the last of the people-related functions, so the assembly-like
wrappers of addToPeopleList() and showGameReel() have been removed. Also,
madManText() has been simplified
2011-12-16 00:41:27 +02:00
Max Horn
d1ed87bece DREAMWEB: Convert notHeldError to C++, move stuff to DreamBase 2011-12-15 14:09:53 +01:00
Max Horn
9ebcaa33e7 DREAMWEB: Move even more stuff to DreamBase 2011-12-15 13:45:43 +01:00
Filippos Karapetis
a682734bce DREAMWEB: Set volumeDirection as a negative integer, where this is used, instead of 0xFF 2011-12-12 22:46:28 +02:00
Filippos Karapetis
33b5c9e040 DREAMWEB: Silence signed/unsigned warning 2011-12-12 16:56:01 +02:00
Willem Jan Palenstijn
cc079c739a DREAMWEB: Fix regression in rollEndCredits
I had previously tested the wrong end credits by accident. Oops...
2011-12-12 14:03:35 +01:00
Max Horn
af85b85a84 DREAMWEB: Convert rollEndCredits/rollEndCredits2 to C++ 2011-12-12 13:26:03 +01:00
Max Horn
c8d4f60852 DREAMWEB: Move more stuff to DreamBase 2011-12-08 20:10:33 +01:00
Max Horn
5b43fb6be7 DREAMWEB: Code formatting 2011-12-08 19:52:10 +01:00
Willem Jan Palenstijn
e40f1af3dc DREAMWEB: Remove globals kCurrentframe, kTakeoff 2011-12-08 19:18:27 +01:00
Willem Jan Palenstijn
e8ccbe3558 DREAMWEB: Convert watchreel and remove global kReelpointer 2011-12-08 19:18:27 +01:00
Willem Jan Palenstijn
5b32729e55 DREAMWEB: Move some data accessor functions to DreamBase 2011-12-08 10:14:37 +01:00