aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser_br.cpp
AgeCommit message (Collapse)Author
2018-08-18PARALLACTION: Replace use of strdup with Common::String & mallocColin Snover
2014-02-18PARALLACTION: Make GPL headers consistent in themselves.Johannes Schickel
2012-11-19PARALLACTION: Mask unused, but set variable warning, by debug().D G Turner
This variable is likely to be used in the future if the associated TODO is implemented, so this warning is inhibited by adding a debug() output statement.
2012-09-27PARALLACTION: Clean up global variables a bit.Alyssa Milburn
2012-02-21Merge pull request #182 from fingolfin/forbid-ctypeWillem Jan Palenstijn
ALL: Avoid using is* macros from ctype.h
2012-02-20COMMON: Move isFoo functions to namespace Common, add doxygen commentsMax Horn
2012-02-15JANITORIAL: Fix whitespace in pointer template argTarek Soliman
2012-02-15ALL: Avoid using is* macros from ctype.hMax Horn
On some systems, passing signed chars to macros like isspace() etc. lead to a runtime error. Hence, mark these macros as forbidden by default, and introduce otherwise equivalent alternatives for them.
2011-06-23ANALYSIS: Add static casts to is* functionsLittleboy
This fixes a potential problem with passing char values that would be sign-extended and yield unexpected results. See http://msdn.microsoft.com/en-us/library/ms245348.aspx
2011-06-20ALL: Remove trailing whitespacesMax Horn
This tries to make our code a bit more compliant with our code formatting conventions. For future use, this is the command I used: git ls-files "*.cpp" "*.h" | xargs sed -i -e 's/[ \t]*$//'
2011-05-12GIT: Clean up: Suppress SVN tags, now uselessstrangerke
2011-04-28JANITORIAL: Reduce header dependencies in shared codeOri Avtalion
Some backends may break as I only compiled SDL
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