aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser_br.cpp
AgeCommit message (Collapse)Author
2011-01-13PARALLACTION: Fix for DoorData Memory Leak in Big Red Adventure.David Turner
svn-id: r55232
2010-06-13Added a parser for kZoneNone zones/animations in BRA.Nicola Mettifogo
The only thing it does is parsing a possible command list, which is enough to support the script bug in "scende2". See ticket #3005384. svn-id: r49628
2010-05-19Add a parser for HEAR zones in BRA, and handle the relative MUSIC command. ↵Nicola Mettifogo
Patch 3003382 by fuzzie, with enhancements. svn-id: r49105
2009-07-26Moved parser functions arrays to file scope, as they were tripping up the ↵Nicola Mettifogo
obsolete gcc used for the BeOS/Haiku port. If anybody can work out a better solution please apply it, because this makes me sick. svn-id: r42793
2009-05-31The error() and warning() functions add ! and newline automatically. (I didn'tTorbjörn Andersson
look at debug() and debugC(), since I'm really bored with this now. :-) svn-id: r41061
2009-04-03Moved background and character loading code from LocationParser_br to the ↵Nicola Mettifogo
engine for BRA. svn-id: r39814
2009-04-03PARALLACTION: Fix silly Mingw 'shadowed declaration' warningsMax Horn
svn-id: r39809
2009-03-29Implemented IFCHAR command. This makes part 3 of BRA completely explorable.Nicola Mettifogo
svn-id: r39742
2009-03-29(Re)link bounding animations after location has been completely parsed. This ↵Nicola Mettifogo
avoids problems due to forward references. svn-id: r39740
2009-03-29Merged CommandData into Command.Nicola Mettifogo
svn-id: r39732
2009-03-23Refactored the zone type parsers.Nicola Mettifogo
svn-id: r39650
2009-03-23Turned ZoneTypes into a regular numeric id (no more a bitfield).Nicola Mettifogo
svn-id: r39648
2009-03-23Merged GetData, HearData, SpeakData, PathData, ExamineData, MergeData into ↵Nicola Mettifogo
TypeData struct. This simplifies life a bit especially in the parsers. svn-id: r39645
2009-03-23Pushed down dependencies from parser.hNicola Mettifogo
svn-id: r39636
2009-03-23Implemented all variants of IF script instruction. Program class has been ↵Nicola Mettifogo
changed to store an Array of instruction instead of a List, so that references to instructions are integers. svn-id: r39631
2009-03-18Postpone loading of mask and path data on BRA. This fixed locations in which ↵Nicola Mettifogo
mask and path are defined before the screen bitmap. svn-id: r39512
2009-03-14Added midi support to BRA. So far music starts, but related script commands ↵Nicola Mettifogo
haven't been implemented yet. svn-id: r39397
2009-03-02Initialize and save zones flags and follower position when a location switch ↵Nicola Mettifogo
occurs. svn-id: r39064
2009-02-27The engine has now to build the drawing list for the graphic department, ↵Nicola Mettifogo
instead of setting visibility flags; the new field _prog has been added to GfxObj to help sorting the list. The outcome is that cleaning up unused resources on location switches is now easier to manage, and less error prone. svn-id: r38928
2009-02-26Removed null*Ptr dummy objects, using SharedPtr's reset method to null ↵Nicola Mettifogo
pointers instead. svn-id: r38897
2009-02-25Updated all for(;;) loops to use prefix increment on iterators.Nicola Mettifogo
svn-id: r38876
2009-02-24Implemented follower support, except that:Nicola Mettifogo
* follower is forgotten when location changes (see freeLocation) * the final walking frame is screwed svn-id: r38838
2009-02-23Cleanup.Nicola Mettifogo
svn-id: r38817
2009-02-03Fixed support for walking zones in BRA:Nicola Mettifogo
* patches are not applied if the zone is not visible when loading * when applying a patch, always overwrite the existing data instead of OR'ing svn-id: r36209
2009-01-12Fixed regression from revision 35765. Mask and path patches were destroyed ↵Nicola Mettifogo
before getting a chance to be used. svn-id: r35835
2009-01-07Extended PathBuffer to support BRA.Nicola Mettifogo
svn-id: r35766
2009-01-07* moved more mask management to BackgroundInfoNicola Mettifogo
* simplified mask management for client code * reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp * preparation for the full implementation of BRA's PathBuffer svn-id: r35765
2009-01-04Implemented counters in BRA. Only valid answer options are shown, and ↵Nicola Mettifogo
counter calculations in scripts are performed. svn-id: r35723
2009-01-03Dropped the script preprocessor introduced to fix the broken scripts. The ↵Nicola Mettifogo
parser has evolved in the meantime and can deal with it accordingly. svn-id: r35700
2008-12-20Moved mask creation/handling to Gfx.Nicola Mettifogo
svn-id: r35447
2008-12-17Reduced code duplication when manipulating Animations, and cleanup.Nicola Mettifogo
svn-id: r35408
2008-12-14Removed some unused code.Nicola Mettifogo
svn-id: r35357
2008-11-08* cleanupNicola Mettifogo
* moved find routines from Parallaction to Location svn-id: r34940
2008-08-22Fixed error in parsing.Nicola Mettifogo
svn-id: r34093
2008-08-15Implemented raster operation for masks and postponed blitting of zones after ↵Nicola Mettifogo
everything in the location has been loaded. This fixes the remaining problems with animations not being masked by items. svn-id: r33903
2008-08-15Added routines to load and handle item masks: animation are now correctly ↵Nicola Mettifogo
hidden when they are behind any object. The masks of items that are not explicitly activated (even if visible) still are handled (e.g. the crown in the museum is not visible in the foreground). svn-id: r33900
2008-08-15Updated layer calculation: animations are now hidden properly by background ↵Nicola Mettifogo
elements (but not items yet). svn-id: r33894
2008-08-15Made coordinates and frame number protected into Zone and Animation, and ↵Nicola Mettifogo
changed client code to use get/set. This will allow various simplifications (e.g. when calculating Z), and is a step towards correct handling of interactive zones of Zone/Animation in BRA. svn-id: r33892
2008-08-15Made scripts access Animation fields via accessors and mutators, instead of ↵Nicola Mettifogo
using raw pointers. svn-id: r33891
2008-08-15Disabled lip syncing code in BRA, since I couldn't find any scripts actually ↵Nicola Mettifogo
using it. Some warnings have been added as a sentinel. svn-id: r33890
2008-08-15Simplified handling of script variables (especially locals).Nicola Mettifogo
svn-id: r33889
2008-08-02Fixed issues detected by DrMcCoy's obnoxious compiler. ;)Nicola Mettifogo
svn-id: r33511
2008-08-02* Added a preprocessor to deal with the crappy location scripts in BRA.Nicola Mettifogo
* Added some comments on how the parser and related code should be changed to make things smoother. svn-id: r33509
2008-07-31* Removed references to the current _backgroundInfo from parser code.Nicola Mettifogo
* Re-enabled masks (in BRA DOS). svn-id: r33474
2008-07-31Made changing of background more flexible, in that the engine can now ↵Nicola Mettifogo
configure its BackgroundInfo before passing it to Gfx. svn-id: r33469
2008-07-31Changed Gfx::_backgroundInfo to be a pointer. This temporarily kills all ↵Nicola Mettifogo
z-buffering. svn-id: r33468
2008-07-28Tiny readability aid for parser code.Nicola Mettifogo
svn-id: r33369
2008-07-28Correct character name set by character location parser.Travis Howell
svn-id: r33361
2008-07-26BRA now parses path data from the scripts.Nicola Mettifogo
svn-id: r33295
2008-07-03Fix for bug #2008054: Parallaction engine doesn't compile under MSVC9Eugene Sandulenko
svn-id: r32879