aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/zone.cpp
AgeCommit message (Collapse)Author
2007-05-01Fix compilation (sigh).Nicola Mettifogo
svn-id: r26724
2007-05-01Implemented a IFF (Interchange File Format) parser and added subclasses to ↵Nicola Mettifogo
parse graphics (ILBM, PBM) and audio (8SVX), thus replacing old decoding routines. SAGA and Parallaction have been adjusted to work with the new code. svn-id: r26719
2007-04-21- Implemented Amiga halfbrite mode in palette code, though usage is limited ↵Nicola Mettifogo
to displayItemComment() for the moment. - Some changes to palette routines to make them fit with the new scheme. svn-id: r26553
2007-04-16Now handling fonts with brand-new Font hierarchy. Amiga font have been ↵Nicola Mettifogo
implemented for dialogues/descriptions, but not for labels yet. svn-id: r26530
2007-04-15- Fonts are now preloaded at start.Nicola Mettifogo
- Replaced font string names with enums. - Some slight simplification to Disk. svn-id: r26518
2007-04-15Fixed some memory leaks.Nicola Mettifogo
svn-id: r26483
2007-04-11- Moved Zone and Animation to List<>.Nicola Mettifogo
- Removed any reference to Node from codebase. svn-id: r26452
2007-04-09- moved walk code to List<>Nicola Mettifogo
- some adjustments to #include statements svn-id: r26424
2007-04-07Added new ManagedList class to handle Instruction and Command lists. The ↵Nicola Mettifogo
same class will be used to hold Zone, Animation and WalkNode lists. svn-id: r26410
2007-04-07cleanupNicola Mettifogo
svn-id: r26409
2007-04-07Changed Commands to use List<>Nicola Mettifogo
svn-id: r26407
2007-04-07Implemented destructors for Question and Answer.Nicola Mettifogo
svn-id: r26405
2007-04-07Turned free___() routines into proper destructors for Zone, Animation and ↵Nicola Mettifogo
Program, and added memo comments for porting the engine to Common::List<>. svn-id: r26399
2007-03-29- implemented destructor for Cnv, thus removing calls to Gfx::freeCnv()Nicola Mettifogo
- enforced use of getFramePtr instead of Cnv::_array member svn-id: r26317
2007-03-24Added new class Table, and updated Disk accordingly. Tables can be populated ↵Nicola Mettifogo
after their creation or wrapped around existing arrays. Thus, the old functions (initTable, freeTable and searchTable) have been removed. svn-id: r26295
2007-03-24made more functions members of ParallactionNicola Mettifogo
svn-id: r26294
2007-03-19made Animation a subclass of Zone (finally!)Nicola Mettifogo
svn-id: r26244
2007-03-18Made loadStatic return a new StaticCnv instead of accepting a parameter. All ↵Nicola Mettifogo
disk functions now accept only a resource name as their parameter. svn-id: r26232
2007-03-18Made loadFrames return a new Cnv instead of accepting a parameter.Nicola Mettifogo
svn-id: r26231
2007-03-18changed DoorData::_cnv to be a pointer, in view of changes to Disk::loadFrames()Nicola Mettifogo
svn-id: r26230
2007-03-18- added constructors for most structsNicola Mettifogo
- structs are now allocated via new instead of malloc's - respective free's have been replaced with delete svn-id: r26228
2007-03-18- Made global Node's (_zones, _animations, _helperNode) and the functions ↵Nicola Mettifogo
using them members of the engine. - Added a constructor for Node svn-id: r26226
2007-03-18converted DoorData and Zone to Common::PointNicola Mettifogo
svn-id: r26215
2007-03-18Made loadHead return a new Cnv instead of accepting a parameter.Nicola Mettifogo
svn-id: r26200
2007-03-18Made loadTalk return a new Cnv instead of accepting a parameter.Nicola Mettifogo
svn-id: r26199
2007-03-18removed unused parameter from Gfx::flatBlitCnvNicola Mettifogo
svn-id: r26195
2007-03-18fixed usage of reference operatorNicola Mettifogo
svn-id: r26189
2007-03-17added getRect() to Zone to slightly simplify hitZone condition checkNicola Mettifogo
svn-id: r26186
2007-03-17renamed structures to be more generalNicola Mettifogo
svn-id: r26184
2007-03-17added getters for width and height in Zone and AnimationNicola Mettifogo
svn-id: r26183
2007-03-17Flattened anonymous union in Zone. Its members have been partially merged.Nicola Mettifogo
svn-id: r26181
2007-03-17- Made Node a superclass for Zone, WalkNode, Command, Instruction, Program ↵Nicola Mettifogo
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-17some renaming to shorten linesNicola Mettifogo
svn-id: r26159
2007-03-17gathered character related stuff into a new struct Character, and modified ↵Nicola Mettifogo
calling code accordingly svn-id: r26158
2007-03-13made hi-level graphics routine use Common::Rect instead of (x,y,w,h) t-uplesNicola Mettifogo
svn-id: r26121
2007-03-12renamed Graphics class to Gfx and Parallaction::_graphics to ↵Nicola Mettifogo
Parallaction::_gfx to shorten lines and avoid aliasing with framework's Graphics svn-id: r26111
2007-03-12The only uses for StaticCnv::_data2 were by Get and Door zones, so a new ↵Nicola Mettifogo
field has been added to those structure and _data2 has been deleted. Some graphic routines has been renamed to better reflect this change, too. svn-id: r26107
2007-03-10character loading/freeing routines now also handle Heads and Talks, instead ↵Nicola Mettifogo
of having scattered code around svn-id: r26059
2007-03-04wrapped loader routines into a new class named Disk. The new class is also ↵Nicola Mettifogo
responsible for handling Archives in place of the Parallaction engine. svn-id: r25972
2007-03-04replaced memAlloc/memFree with standard malloc/freeNicola Mettifogo
svn-id: r25962
2007-03-02added loaders for static images like pickable items and for characters framesNicola Mettifogo
svn-id: r25940
2007-03-02enforced convention on loader names: load[ItemType]Nicola Mettifogo
svn-id: r25937
2007-03-02changed every font name to be platform independent, added font loader routineNicola Mettifogo
svn-id: r25935
2007-03-02replaced calls to loadExternalStaticCnv with separate loaders for Head and ↵Nicola Mettifogo
Pointer resources svn-id: r25934
2007-03-02added openTalk as loader for talk resourcesNicola Mettifogo
svn-id: r25931
2007-02-27changed font handling:Nicola Mettifogo
- 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-20made hi-level parsing routines (Zone, Commands, Dialogue, Animation) rely on ↵Nicola Mettifogo
Script objects for input. svn-id: r25743
2007-02-20changed parseComment to use Script stream instead of fileNicola Mettifogo
svn-id: r25739
2007-02-19first step in parser simplificationNicola Mettifogo
svn-id: r25733
2007-02-19fixed regression bug preventing user from interacting with many items, ↵Nicola Mettifogo
notably not allowing combining items from the inventory svn-id: r25714