aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/location.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-14Defined new Table for location scripts level-0 statements, and changed ↵Nicola Mettifogo
parseLocation to use a function pointer array instead of a big switch statement. svn-id: r28620
2007-08-14Partially reverting commit 28568, so now engine is back in charge for ↵Nicola Mettifogo
parsing locations. I'm going to convert this if/else/else hell into smaller opcode-like routines to achieve more flexibility first, and then assign version-specific opcodes to subclasses. svn-id: r28609
2007-08-12Added preliminary support for loading locations in BRA: Nicola Mettifogo
- changed parseLocation to invoke subclasses for version-specific keywords. - implemented loading of background resources (backgrounds should be visible) svn-id: r28568
2007-08-12Changed signature of disk routines for backgrounds to something resembling ↵Nicola Mettifogo
revisions prior to 28524, yet keeping the new useful BackgroundInfo struct. Those routines can now be used to fill specific fields of the struct, instead of having them create a new one at each call. This feature is needed by BRA, since background, mask and path are specified by different instructions in the script. svn-id: r28566
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-11Deleted some rotten comments.Nicola Mettifogo
svn-id: r28526
2007-08-11Cleanup.Nicola Mettifogo
svn-id: r28525
2007-08-11Overhaul of background/mask/path handling:Nicola Mettifogo
- added new BackgroundInfo structure - added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation. - simplified loading and handling of background resources. svn-id: r28524
2007-08-09Encapsulated palette stuff into a new Palette object and got rid of a lot of ↵Nicola Mettifogo
#defines. This should ease handling of palettes in different versions of the engine. svn-id: r28509
2007-08-07Location comments are now displayed by a single Gfx function.Nicola Mettifogo
svn-id: r28481
2007-08-06Made thickness of balloon borders consistent with original games.Nicola Mettifogo
svn-id: r28470
2007-07-31Generalized fadePalette to support custom target palette.Nicola Mettifogo
svn-id: r28367
2007-07-31Renamed palette functions.Nicola Mettifogo
svn-id: r28365
2007-07-13Full screen updates aren't automatic after palette changes anymore now. ↵Nicola Mettifogo
Traded some code pollution with SPEED! svn-id: r28061
2007-07-08Location background sound (different from music) now implemented.Nicola Mettifogo
svn-id: r27958
2007-07-02Removed special displayBalloonString routine.Nicola Mettifogo
svn-id: r27850
2007-06-18Mouse is now properly hidden during dialogues, and is restored after ↵Nicola Mettifogo
load/save dialog boxes are closed. Moreover, kEngineMouse constant has been renamed to better match its meaning. svn-id: r27539
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-21Fixed the largest memory leaks.Nicola Mettifogo
svn-id: r26905
2007-05-20Fixed regression: location comment wasn't shown on every location except the ↵Nicola Mettifogo
first visited. svn-id: r26895
2007-05-13More cleanup.Nicola Mettifogo
svn-id: r26835
2007-05-13cleanupNicola Mettifogo
svn-id: r26834
2007-05-13Reverted my last change to changeLocation.Nicola Mettifogo
svn-id: r26831
2007-05-12Fixed crashes when changing location in the introduction and removed useless ↵Nicola Mettifogo
code from the original engine. svn-id: r26813
2007-05-06Some cheap cleanup.Nicola Mettifogo
svn-id: r26757
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-27Refactored music code for dos version and added music to Amiga versions.Nicola Mettifogo
svn-id: r26619
2007-04-23Fonts have been taking care of them being proportional for some time now, so ↵Nicola Mettifogo
it's time to remove old flags. svn-id: r26585
2007-04-23Tiny fix for missing text in slides.Nicola Mettifogo
svn-id: r26579
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-11- Moved Zone and Animation to List<>.Nicola Mettifogo
- Removed any reference to Node from codebase. svn-id: r26452
2007-04-09Cleanup of Zone/Animation removal code. Only the good god of void pointers ↵Nicola Mettifogo
knows how it managed to work until now. svn-id: r26430
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-07Reduced dependency between project files, and prepared defs.h for deletion ↵Nicola Mettifogo
as soon as List<>'s usage is implemented. svn-id: r26400
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-28Overhaul of palette management to bring it back to its original form. Gfx ↵Nicola Mettifogo
palette code has been updated, and _c_endComment (callable from scripts) has been implemented. As a by-product, palette cycling now finally works! svn-id: r26314
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-24- fixed regression bug: one free/delete mismatchNicola Mettifogo
- added needed virtual destructors to structs svn-id: r26292
2007-03-20replaced some x,y/left,top pairs with Common::PointNicola Mettifogo
svn-id: r26262
2007-03-19made Animation a subclass of Zone (finally!)Nicola Mettifogo
svn-id: r26244
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