aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser_ns.cpp
AgeCommit message (Collapse)Author
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
2010-12-12PARALLACTION: parse command lists for kNoneType zones, even if defined after ↵Nicola Mettifogo
TYPE markers. This fixes bug #3131769. svn-id: r54879
2010-11-01ENGINES: Replace many printfs by warning/debug/debugNMax Horn
svn-id: r54031
2010-06-04Ensure that zones/animations always get the same index number.Nicola Mettifogo
When a zone/animation is skipped by the parser because already loaded, the index is now increased. This does not affect NS, since indexes are only used for scene sorting there, but is relevant for BRA, where indexes need to be coherent across location changes. Patch #3004008 by fuzzie. svn-id: r49428
2010-04-28Fixed leaks in parsing of examine and door zones.Nicola Mettifogo
svn-id: r48838
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-04-03Moved Nippon Safes specific code from Parallaction to Parallaction_ns and ↵Nicola Mettifogo
adapted client code. svn-id: r39813
2009-04-03PARALLACTION: Fix silly Mingw 'shadowed declaration' warningsMax Horn
svn-id: r39809
2009-03-29Commands now evaluate their reference Zone at runtime, thus handling of ↵Nicola Mettifogo
forward references in the parser is no more needed. svn-id: r39738
2009-03-29Merged CommandData into Command.Nicola Mettifogo
svn-id: r39732
2009-03-24Removed paranoia check.Nicola Mettifogo
svn-id: r39656
2009-03-24* Pushed evaluation of 'following question' from dialogue parsing to ↵Nicola Mettifogo
dialogue execution. * Removed all the question forwards declaration code svn-id: r39654
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-14Fixed building on 64-bit architectures.Nicola Mettifogo
svn-id: r39395
2009-03-14* Added a generic sound manager that hides engine-specific managers and ↵Nicola Mettifogo
allows accessing them through a simplified command/parameter interface. * Updated client code to use the new manager. * Moved Nippon Safes sound code from sound.cpp to sound_ns.cpp. svn-id: r39394
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-23Cleanup.Nicola Mettifogo
svn-id: r38817
2009-01-20Replacement an immediate with the appropriate #define constant.Nicola Mettifogo
svn-id: r35950
2009-01-20Adapted fixed-sized arrays to cope with the larger dialogues in BRA. Maybe ↵Nicola Mettifogo
they should be turned into dynamic data structures... svn-id: r35944
2009-01-08Don't assert anymore when a command flag doesn't exist, but ignore it and ↵Nicola Mettifogo
print a warning instead. Some location scripts in BRA are totally broken. svn-id: r35783
2009-01-04Made sure to display labels on animations.Nicola Mettifogo
svn-id: r35726
2009-01-04Implemented counters in BRA. Only valid answer options are shown, and ↵Nicola Mettifogo
counter calculations in scripts are performed. svn-id: r35723
2008-12-21Added a stub to dialogue parser, so that dialogue lines controlled by ↵Nicola Mettifogo
counters are displayed. svn-id: r35465
2008-12-17Reduced code duplication when manipulating Animations, and cleanup.Nicola Mettifogo
svn-id: r35408
2008-12-14Removed references to _vm from the engine itself.Nicola Mettifogo
svn-id: r35358
2008-12-13* Replaced char* with Common::String in the parser.Nicola Mettifogo
* Enforced const-correctness on related routines. svn-id: r35326
2008-11-13Update to the low level parser:Nicola Mettifogo
* made it detect buffer overflows * removed unused code paths * general simplification svn-id: r35047
2008-11-12Fixed default zone flags, so that labels in BRA are only shown on zones ↵Nicola Mettifogo
which have one. svn-id: r35012
2008-11-09Enabled flags parsing for all commands in location script. Most of them ↵Nicola Mettifogo
don't need it, but some commands have been enhanced in BRA. svn-id: r34944
2008-11-08* cleanupNicola Mettifogo
* moved find routines from Parallaction to Location svn-id: r34940
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-15Simplified handling of script variables (especially locals).Nicola Mettifogo
svn-id: r33889
2008-08-14Some variable renamed to make more sense.Nicola Mettifogo
svn-id: r33864
2008-07-28Tiny readability aid for parser code.Nicola Mettifogo
svn-id: r33369
2008-07-28Preliminary code for traps.Nicola Mettifogo
svn-id: r33364
2008-07-25Changed the remaining references to Nodes into Points.Nicola Mettifogo
svn-id: r33290
2008-07-25* Changed walk code to use Common::Point instead of the clumsy WalkNode.Nicola Mettifogo
* Changed walk code to use object copy instead of managing pointers. svn-id: r33289
2008-07-03Fix for bug #2008054: Parallaction engine doesn't compile under MSVC9Eugene Sandulenko
svn-id: r32879
2008-06-05Merged revisions ↵Christopher Page
32507-32513,32516,32518,32520-32521,32523-32524,32526-32548,32550-32562 via svnmerge from https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk svn-id: r32563
2008-06-04Script instructions referencing unexisting animations are now skipped, ↵Nicola Mettifogo
instead of crashing the engine. svn-id: r32524
2008-06-03PARA: Fixed some memory leaksChristopher Page
svn-id: r32519