Commit Graph
161 Commits
Author SHA1 Message Date
Nicola Mettifogo 53bdc1e0cf Fixed regression bug in dialogue code.
svn-id: r26422
2007-04-09 07:50:52 +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 2f6f857eaf Fixed incomplete implementation of Command lists.
svn-id: r26408
2007-04-07 15:47:42 +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 16dc3436ad New struct Answer introduced.
svn-id: r26404
2007-04-07 12:47:02 +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 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 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
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 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 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 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 0aedc8d67f Removed old and commented hack code for Dino in the museum location.
svn-id: r26198
2007-03-18 09:35:48 +00:00
Nicola Mettifogo 6d718d27f5 extracted more code from runDialogue and renamed some key variables
svn-id: r26197
2007-03-18 09:34:19 +00:00
Nicola Mettifogo abaef3f5af removed unused parameter from Gfx::flatBlitCnv
svn-id: r26195
2007-03-18 09:16:12 +00:00
Nicola Mettifogo 03249397e0 more formatting
svn-id: r26194
2007-03-18 09:09:02 +00:00
Nicola Mettifogo 97426c8808 formatting
svn-id: r26193
2007-03-18 09:06:22 +00:00
Nicola Mettifogo 88ce9c83bd broke down huge runDialogue in more manageable chunks
svn-id: r26192
2007-03-18 08:58:41 +00:00
Max Horn ed54ea9155 Moved Event/EventType/keyboard enum from common/system.h (part of class OSystem) to common/events.h (part of namespace Common). Porters may have to make minor changes to their backends to get them to compile again
svn-id: r26180
2007-03-17 19:02:05 +00:00
Nicola Mettifogo b515721ed8 some renaming to shorten lines
svn-id: r26159
2007-03-17 07:55:16 +00:00
Nicola Mettifogo 1ef774b2ee gathered character related stuff into a new struct Character, and modified calling code accordingly
svn-id: r26158
2007-03-17 07:52:47 +00:00
Max Horn 15d9bc42ea Force all code to use EventManager::pollEvent instead of OSystem::pollEvent
svn-id: r26156
2007-03-17 00:53:21 +00:00
Nicola Mettifogo 33093f3452 made hi-level graphics routine use Common::Rect instead of (x,y,w,h) t-uples
svn-id: r26121
2007-03-13 19:59:45 +00:00
Nicola Mettifogo cf816f54d9 removed useless routines (maybe leftovers from the amiga conversion)
svn-id: r26116
2007-03-12 22:45:50 +00:00
Nicola Mettifogo 6f0dda093a renamed Graphics class to Gfx and Parallaction::_graphics to Parallaction::_gfx to shorten lines and avoid aliasing with framework's Graphics
svn-id: r26111
2007-03-12 20:41:25 +00:00
Nicola Mettifogo 3b5c330cef wrapped active location data into a new structure
svn-id: r26085
2007-03-11 14:14:08 +00:00
Nicola Mettifogo 23b7c2aec5 should stop Q's Visual Studio from complaining
svn-id: r26079
2007-03-11 01:06:54 +00:00
Nicola Mettifogo 7d03e1ebf4 more refactoring
svn-id: r26076
2007-03-11 00:04:50 +00:00
Nicola Mettifogo 72ef7093fa some refactoring
svn-id: r26072
2007-03-10 22:13:47 +00:00
Nicola Mettifogo 096579ecbc commented nasty hack in the original code
svn-id: r26071
2007-03-10 21:31:59 +00:00
Nicola Mettifogo 479c8bdc18 character loading/freeing routines now also handle Heads and Talks, instead of having scattered code around
svn-id: r26059
2007-03-10 14:52:33 +00:00
Nicola Mettifogo b440bc1a03 wrapped loader routines into a new class named Disk. The new class is also responsible for handling Archives in place of the Parallaction engine.
svn-id: r25972
2007-03-04 13:27:29 +00:00
Nicola Mettifogo c727205dae replaced memAlloc/memFree with standard malloc/free
svn-id: r25962
2007-03-04 08:58:23 +00:00
Nicola Mettifogo 6d958e9f30 added loaders for static images like pickable items and for characters frames
svn-id: r25940
2007-03-02 23:13:13 +00:00
Nicola Mettifogo 753d83f946 enforced convention on loader names: load[ItemType]
svn-id: r25937
2007-03-02 22:26:39 +00:00
Nicola Mettifogo c122d83c0e changed every font name to be platform independent, added font loader routine
svn-id: r25935
2007-03-02 22:18:37 +00:00
Nicola Mettifogo 1af8258325 added openTalk as loader for talk resources
svn-id: r25931
2007-03-02 21:47:35 +00:00
Nicola Mettifogo b2927b69c6 changed font handling:
- engine doesn't see font as a low-level Cnv anymore
- the Graphics class takes care of freeing memory on font changes

svn-id: r25900
2007-02-27 19:39:33 +00:00
Nicola Mettifogo cacff9a9f2 wrapped archive routines into a new class named Archive. File-level static variables have been made members of the new class.
svn-id: r25866
2007-02-25 20:35:47 +00:00
Nicola Mettifogo d689187aa3 made hi-level parsing routines (Zone, Commands, Dialogue, Animation) rely on Script objects for input.
svn-id: r25743
2007-02-20 16:54:55 +00:00
Nicola Mettifogo 07077a2be4 first step in parser simplification
svn-id: r25733
2007-02-19 22:34:00 +00:00
Torbjörn Andersson 24a36cbb3f Changed spaces to tabs again.
svn-id: r25656
2007-02-17 16:06:34 +00:00