aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/zone.cpp
AgeCommit message (Collapse)Author
2007-08-24First step in restructuring engine code:Nicola Mettifogo
- code has been consolidated in fewer files - new table-driven parsers/execution - some functions has been pushed down the engine hierarchy - Parallaction_br now inherits from Parallaction_ns svn-id: r28711
2007-08-16Now using stacks to keep track of multiple levels when parsing location scripts.Nicola Mettifogo
svn-id: r28639
2007-08-16Changed more parsing routines to use tables instead of switch statements.Nicola Mettifogo
svn-id: r28637
2007-08-13Changed Table to return 0 instead of -1 when lookup fails. Lookup already ↵Nicola Mettifogo
yields 1-based values when the item is found. svn-id: r28600
2007-08-11Moved core font management from Gfx to engine. Gfx still retains features ↵Nicola Mettifogo
related to displaying text on screen. svn-id: r28530
2007-08-09Fixed some memory leaks.Nicola Mettifogo
svn-id: r28503
2007-08-08Removed some duplicated code.Nicola Mettifogo
svn-id: r28491
2007-08-07Turned StaticCnv struct into stock Graphics::Surface, and changed all ↵Nicola Mettifogo
relevant code. svn-id: r28484
2007-08-04Added routine to restore door backgrounds: this means that backgrounds for ↵Nicola Mettifogo
door and get zones are now handled by two different sets of routines. This fixes bugs #1765191 and #1762643 (it was actually the same bug). svn-id: r28449
2007-07-29Cleanup.Nicola Mettifogo
svn-id: r28315
2007-07-28Should fix bug #1762614. There is a chance some regression glitches appear ↵Nicola Mettifogo
in locations where animations are displayed together with character comments. svn-id: r28272
2007-07-26Made screen size parameters properties of engine instead of compile-time ↵Nicola Mettifogo
constants. svn-id: r28219
2007-07-15Screen update is no more triggered automatically when performing full ↵Nicola Mettifogo
screen-size blits on Front buffer. Menu code has been changed accordingly to retain consistency. svn-id: r28097
2007-07-02Removed special displayBalloonString routine.Nicola Mettifogo
svn-id: r27850
2007-07-01Introduced new flatBlitCnv to reduce code duplication.Nicola Mettifogo
svn-id: r27833
2007-05-30Updated legal headers in source files, based on what Pidgin (the IM client ↵Max Horn
formerly knowns as Gaim) does; added new (incomplete) COPYRIGHT file; updated copyright dates in a few spots svn-id: r27024
2007-05-20Fixed embarrassing - and old as time - mistake preventing some items from ↵Nicola Mettifogo
being deleted from the screen when picked up. svn-id: r26889
2007-05-18Reverting my last change.Nicola Mettifogo
svn-id: r26866
2007-05-16Replaced explicit bitmasks with function calls.Nicola Mettifogo
svn-id: r26855
2007-05-13cleanupNicola Mettifogo
svn-id: r26834
2007-05-06Added embryonic debugger, and some adjustments to make basic commands work.Nicola Mettifogo
svn-id: r26755
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