Commit Graph

79 Commits

Author SHA1 Message Date
Nicola Mettifogo
9a766cf5c4 Removed direct references to callable functions (opcodes). They are now only available via a virtual member function in the engine.
svn-id: r28291
2007-07-29 15:21:33 +00:00
Nicola Mettifogo
7e7b07132e Moved specialized initialization code into subclasses.
svn-id: r28289
2007-07-29 14:24:31 +00:00
Nicola Mettifogo
8b62b591a8 Added detection target for Big Red Adventure, and derived new engine classes for supported games.
svn-id: r28247
2007-07-27 23:41:43 +00:00
Nicola Mettifogo
236634662c Made screen size parameters properties of engine instead of compile-time constants.
svn-id: r28219
2007-07-26 18:30:27 +00:00
Nicola Mettifogo
5a85103374 Full screen updates aren't automatic after palette changes anymore now. Traded some code pollution with SPEED!
svn-id: r28061
2007-07-13 20:50:57 +00:00
Nicola Mettifogo
674f2e93c2 Location background sound (different from music) now implemented.
svn-id: r27958
2007-07-08 08:13:32 +00:00
Nicola Mettifogo
214cbc40f5 Moved SaveLoadChooser class to saveload.cpp and adjusted dependencies.
svn-id: r27954
2007-07-07 19:42:06 +00:00
Nicola Mettifogo
94fab1c151 Wrapped dialogue functions into a new DialogueManager, and some basic refactoring.
svn-id: r27827
2007-07-01 16:12:21 +00:00
Nicola Mettifogo
f6e2c67cbb Mouse is now properly hidden during dialogues, and is restored after load/save dialog boxes are closed. Moreover, kEngineMouse constant has been renamed to better match its meaning.
svn-id: r27539
2007-06-18 20:11:49 +00:00
Travis Howell
4362692684 Add GF_LANG_MULT game flag, for detecting differences between the two Amiga versions.
svn-id: r27441
2007-06-16 02:43:31 +00:00
Nicola Mettifogo
607b2f3476 Added full version of Nippon Safes for Amiga (EN/FR/DE) to detector.
svn-id: r27389
2007-06-13 20:00:39 +00:00
Max Horn
218e132e37 Updated legal headers in source files, based on what Pidgin (the IM client formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots
svn-id: r27024
2007-05-30 21:56:52 +00:00
Nicola Mettifogo
ae63466446 cleanup
svn-id: r26834
2007-05-13 14:38:05 +00:00
Nicola Mettifogo
09c816e695 New debug messages.
svn-id: r26832
2007-05-13 12:41:42 +00:00
Nicola Mettifogo
346f0746d6 Added Audio debug level and fixed a bug when freeing music streams.
svn-id: r26804
2007-05-12 12:56:35 +00:00
Torbjörn Andersson
8a48951370 Fixed compilation.
svn-id: r26762
2007-05-06 10:31:17 +00:00
Nicola Mettifogo
a4cc51b8c5 Added embryonic debugger, and some adjustments to make basic commands work.
svn-id: r26755
2007-05-06 08:52:27 +00:00
Nicola Mettifogo
81d6873608 Refactored music code for dos version and added music to Amiga versions.
svn-id: r26619
2007-04-27 20:06:42 +00:00
Nicola Mettifogo
ab85ecdcb7 - Moved Zone and Animation to List<>.
- Removed any reference to Node from codebase.

svn-id: r26452
2007-04-11 20:01:06 +00:00
Nicola Mettifogo
6f8e77eb76 Moved Jobs to ManagedList. Since Jobs must be ordered according to their priority, a new insertSorted method has been added to the implementation.
svn-id: r26451
2007-04-10 18:46:34 +00:00
Nicola Mettifogo
cfcf281b86 Cleanup of Zone/Animation removal code. Only the good god of void pointers knows how it managed to work until now.
svn-id: r26430
2007-04-09 11:07:38 +00:00
Nicola Mettifogo
a0dbf44ee1 - moved walk code to List<>
- some adjustments to #include statements

svn-id: r26424
2007-04-09 10:03:15 +00:00
Nicola Mettifogo
edd226d1b6 Added new ManagedList class to handle Instruction and Command lists. The same class will be used to hold Zone, Animation and WalkNode lists.
svn-id: r26410
2007-04-07 17:18:16 +00:00
Nicola Mettifogo
5a8b8ca92d cleanup
svn-id: r26409
2007-04-07 16:40:27 +00:00
Nicola Mettifogo
162247ad3e Changed Commands to use List<>
svn-id: r26407
2007-04-07 15:18:26 +00:00
Nicola Mettifogo
9cf94ef46a Implemented destructors for Question and Answer.
svn-id: r26405
2007-04-07 14:00:23 +00:00
Nicola Mettifogo
59b1538685 Reduced dependency between project files, and prepared defs.h for deletion as soon as List<>'s usage is implemented.
svn-id: r26400
2007-04-07 10:02:59 +00:00
Nicola Mettifogo
9367371107 Turned free___() routines into proper destructors for Zone, Animation and Program, and added memo comments for porting the engine to Common::List<>.
svn-id: r26399
2007-04-07 09:31:24 +00:00
Nicola Mettifogo
972b0d036a Characters now only store the set of frames they actually need. Basically, mini characters and normal characters are now completely separated.
svn-id: r26381
2007-04-04 20:59:31 +00:00
Nicola Mettifogo
711865ef63 - implemented destructor for Cnv, thus removing calls to Gfx::freeCnv()
- enforced use of getFramePtr instead of Cnv::_array member

svn-id: r26317
2007-03-29 18:34:31 +00:00
Nicola Mettifogo
7b9c74acae Added new class Table, and updated Disk accordingly. Tables can be populated after their creation or wrapped around existing arrays. Thus, the old functions (initTable, freeTable and searchTable) have been removed.
svn-id: r26295
2007-03-24 21:18:08 +00:00
Nicola Mettifogo
3034cb1273 made more functions members of Parallaction
svn-id: r26294
2007-03-24 19:55:34 +00:00
Nicola Mettifogo
a37870c125 - moved buildWalkPath inner loop into a new function
- renamed some variables in buildWalkPath
- deleted an old extern for buildWalkPath

svn-id: r26272
2007-03-21 21:49:11 +00:00
Nicola Mettifogo
d881196681 replaced some x,y/left,top pairs with Common::Point
svn-id: r26262
2007-03-20 20:46:09 +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
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
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
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
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
ec58e9ac05 Made loadHead return a new Cnv instead of accepting a parameter.
svn-id: r26200
2007-03-18 10:25:46 +00:00
Nicola Mettifogo
35cebe2444 Made loadTalk return a new Cnv instead of accepting a parameter.
svn-id: r26199
2007-03-18 10:20:38 +00:00
Nicola Mettifogo
74f7a90886 renamed structures to be more general
svn-id: r26184
2007-03-17 20:51:13 +00:00
Nicola Mettifogo
54201ddaa9 split Zone::_oldPosition in two members
svn-id: r26182
2007-03-17 20:19:16 +00:00
Nicola Mettifogo
d7f31cf55d Flattened anonymous union in Zone. Its members have been partially merged.
svn-id: r26181
2007-03-17 19:48:48 +00:00
Nicola Mettifogo
f272d19570 cleanup
svn-id: r26179
2007-03-17 17:52:30 +00:00
Nicola Mettifogo
aca3cfad51 cleanup
svn-id: r26166
2007-03-17 13:19:30 +00:00
Nicola Mettifogo
48460e2ea6 - Made Node a superclass for Zone, WalkNode, Command, Instruction, Program and Job.
- Moved Job list management inside Parallaction (because constructors for global variables are not always invoked on some platforms)

svn-id: r26164
2007-03-17 13:14:50 +00:00
Nicola Mettifogo
cb5c3840ed minor cleanup
svn-id: r26161
2007-03-17 08:06:45 +00:00