Commit Graph
86814 Commits
Author SHA1 Message Date
Sven Hesse 2dc7cb2cd4 Major clean-up, including:
- Cutting down the code-dup
- Plucking leaks
- Removing dead/unused code
- Properly naming "word_2342F"-style variables and functions (removing the warnings alongside)
- Fleshing out the "stubby" functions
- Moving functions and variables to more appropriate/logical places
- Re-ordering functions and variables
- Re-structuring functions
- Moving the IMD stuff into a new "Imd" class in the new imd.cpp/.h (still to be completely implemented and cleaned up)
- Formatting
- Getting rid off the classes "Anim", "Pack" and "Timer", along with their files

svn-id: r26252
2007-03-20 14:51:57 +00:00
Nicola Mettifogo d94979c936 final version of runDialogue
svn-id: r26251
2007-03-19 22:38:00 +00:00
Nicola Mettifogo 838ec385cf applied De Morgan's law to an expression to expose similarities
svn-id: r26250
2007-03-19 22:32:35 +00:00
Nicola Mettifogo 54b785fb3b fixed bug from first decompile
svn-id: r26249
2007-03-19 22:30:54 +00:00
Max Horn eb6318e9fa Added FIXME comment to CINE regarding an odd warning in processSeqListElement
svn-id: r26248
2007-03-19 22:30:28 +00:00
Nicola Mettifogo 33f827c83e refactoring of the main loop of runDialogue, now in a decent shape
svn-id: r26247
2007-03-19 22:24:40 +00:00
Nicola Mettifogo 8f69bae8ec a bit of refactoring for dialogue code
svn-id: r26246
2007-03-19 22:21:10 +00:00
Nicola Mettifogo d5e26cf261 removed most useless (paranoid) debugC
svn-id: r26245
2007-03-19 22:10:10 +00:00
Nicola Mettifogo fe5660400f made Animation a subclass of Zone (finally!)
svn-id: r26244
2007-03-19 21:49:41 +00:00
Nicola Mettifogo 3dd12518cb added member initialization
svn-id: r26243
2007-03-19 21:44:23 +00:00
Nicola Mettifogo 1931461127 deleted some dead code
svn-id: r26242
2007-03-19 20:26:17 +00:00
Max Horn b7eb659e06 Added FIXME note into the gob code (it tries to write into datafiles, which makes it unportable to devices with read-only gamedata storage)
svn-id: r26240
2007-03-19 12:52:18 +00:00
Travis Howell 3e85ecbe5f Remove duplicate code, for clipping of mouse position.
svn-id: r26238
2007-03-19 00:24:58 +00:00
Matthew Hoops 96823c885f updating shake.screen warning/comment to reflect that AGIPAL uses it, and not AGIMOUSE
svn-id: r26237
2007-03-18 23:35:24 +00:00
Matthew Hoops 82220883d1 adding GF_AGIPAL to those games which have that feature (the ones with pal.101) and fixing a typo
svn-id: r26236
2007-03-18 23:28:22 +00:00
Max Horn 8fae7d8b02 Fixed warning: warning: base class 'struct Parallaction::Node' should be explicitly initialized in the copy constructor
svn-id: r26235
2007-03-18 23:04:44 +00:00
Johannes Schickel 1d395cccee Allows cross compiling for windows with mingw32.
svn-id: r26234
2007-03-18 22:56:56 +00:00
Max Horn 995a4d7cff Some fixes to cope with the move of the event code from OSystem to Common
svn-id: r26233
2007-03-18 21:55:57 +00:00
Nicola Mettifogo 0bc056aee3 Made loadStatic return a new StaticCnv instead of accepting a parameter. All disk functions now accept only a resource name as their parameter.
svn-id: r26232
2007-03-18 21:15:39 +00:00
Nicola Mettifogo 992f535724 Made loadFrames return a new Cnv instead of accepting a parameter.
svn-id: r26231
2007-03-18 21:08:28 +00:00
Nicola Mettifogo 4966b755f0 changed DoorData::_cnv to be a pointer, in view of changes to Disk::loadFrames()
svn-id: r26230
2007-03-18 21:00:22 +00:00
Nicola Mettifogo 548a522733 changed Animation::_cnv to be a pointer, in view of changes to Disk::loadFrames()
svn-id: r26229
2007-03-18 20:35:12 +00:00
Nicola Mettifogo 7e310422c3 - added constructors for most structs
- structs are now allocated via new instead of malloc's
- respective free's have been replaced with delete

svn-id: r26228
2007-03-18 20:18:19 +00:00
Nicola Mettifogo 2ea44bf1ee changed code to use WalkNode constructors
svn-id: r26227
2007-03-18 19:59:56 +00:00
Nicola Mettifogo f14a5c17f2 - Made global Node's (_zones, _animations, _helperNode) and the functions using them members of the engine.
- Added a constructor for Node

svn-id: r26226
2007-03-18 19:35:54 +00:00
Max Horn 2c3152ea62 Fix for bug #1683111 (PSP: unable to build latest svn version 26210)
svn-id: r26225
2007-03-18 18:59:35 +00:00
Max Horn b44d93d068 QUEEN: Make use of EventManager::getMousePos
svn-id: r26224
2007-03-18 18:55:11 +00:00
Max Horn 94739cdbca SAGA: Make use of EventManager::getMousePos
svn-id: r26223
2007-03-18 18:45:36 +00:00
Max Horn f1497d5aa9 CINE: Make use of EventManager::getMousePos
svn-id: r26222
2007-03-18 18:34:16 +00:00
Max Horn 888e68f433 KYRA: Changed to use EventManager::getMousePos (should improve some things: the old code did not properly track the mouse upon click events, and KyraEngine::waitForEvent ignored _flags.useHiResOverlay)
svn-id: r26221
2007-03-18 18:27:52 +00:00
Max Horn 8ba2a5bb83 GOB: use EventManager::getMousePos and some cleanup
svn-id: r26220
2007-03-18 18:10:34 +00:00
Robert Göffringmann 139608f451 Fixed bug #1678349: BASS: music is off, but drum track plays
svn-id: r26219
2007-03-18 17:58:26 +00:00
Max Horn dd61b25634 More AGOSEngine::waitForInput refactoring
svn-id: r26218
2007-03-18 17:55:11 +00:00
Nicola Mettifogo 29bf77d5b1 hidden _cnv member of Animation from callers
svn-id: r26217
2007-03-18 17:33:54 +00:00
Nicola Mettifogo c1f84742f9 changed remaining stuff to Common::Point and got rid of custom Point and Rect
svn-id: r26216
2007-03-18 17:22:07 +00:00
Nicola Mettifogo 0e370a4162 converted DoorData and Zone to Common::Point
svn-id: r26215
2007-03-18 17:17:21 +00:00
Nicola Mettifogo 919985e4df converted input and labels to Common::Point
svn-id: r26214
2007-03-18 17:12:48 +00:00
Nicola Mettifogo ff5ec6462e converted walk routines to use Common::Point
svn-id: r26213
2007-03-18 17:03:07 +00:00
Robert Göffringmann edd4e73787 minor cleanup
svn-id: r26212
2007-03-18 16:50:39 +00:00
Johannes Schickel c7c79e33db Fixed various gui strings in German floppy.
svn-id: r26211
2007-03-18 16:15:19 +00:00
Max Horn 8bf7953839 Refactoring AGOSEngine::waitForInput some more (in baby steps, so that if I break something, it'll be easier to figure out at which point I did it :)
svn-id: r26210
2007-03-18 14:33:13 +00:00
Torbjörn Andersson 003dfed001 Fixed control panel sliders.
svn-id: r26209
2007-03-18 14:30:26 +00:00
Robert Göffringmann 3f6745a2f4 Applied eriktorbjorn's patch for bug #1657466:
"BASS: wrong music slider behavior"
and did some cleanup.

svn-id: r26208
2007-03-18 14:08:34 +00:00
Max Horn 612e7a3eeb Refactoring AGOSEngine::waitForInput a bit (by resolving gotos)
svn-id: r26207
2007-03-18 13:53:51 +00:00
Max Horn 72ee9ee86a Changed AGOS to use the EventManager to track the mouse position; added a FIXME comment about _mouseOld never being set
svn-id: r26206
2007-03-18 13:29:12 +00:00
Torbjörn Andersson 48cb57ec89 Let the event manager keep track of the mouse position.
svn-id: r26205
2007-03-18 12:53:28 +00:00
Johannes Schickel d611e81672 - little 'cleanup'
- finished MSC file support for Amiga version

svn-id: r26204
2007-03-18 12:08:13 +00:00
Nicola Mettifogo 791ad09510 Made loadFont return a new Cnv instead of accepting a parameter.
svn-id: r26203
2007-03-18 10:38:31 +00:00
Nicola Mettifogo 13385a5f2d Made loadObjects return a new Cnv instead of accepting a parameter.
svn-id: r26202
2007-03-18 10:34:41 +00:00
Nicola Mettifogo 8f74bc15ae - made loadPointer return a new StaticCnv instead of accepting a parameter.
- adjusted Gfx code handling mouse pointers.

svn-id: r26201
2007-03-18 10:30:51 +00:00