aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/parser.h
AgeCommit message (Collapse)Author
2009-04-03Moved background and character loading code from LocationParser_br to the ↵Nicola Mettifogo
engine for BRA. svn-id: r39814
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-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-23Turned ZoneTypes into a regular numeric id (no more a bitfield).Nicola Mettifogo
svn-id: r39648
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-07Whitespace cleanup: Convert space followed by tab to just tabMax Horn
svn-id: r39203
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-24Changed interface to walk code, to better handle the differences between ↵Nicola Mettifogo
games. Moreover: * merged PathBuilder_BR into PathWalker_BR * implemented checkTrap routine for BRA svn-id: r38836
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-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-21Moved more GfxObj management to Gfx object.Nicola Mettifogo
svn-id: r35466
2008-12-13* Replaced char* with Common::String in the parser.Nicola Mettifogo
* Enforced const-correctness on related routines. svn-id: r35326
2008-12-07Fixed assorted leaks in Parallaction.Nicola Mettifogo
svn-id: r35270
2008-11-14Removed unused parameter.Nicola Mettifogo
svn-id: r35053
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-09Update ReadStringStream and parser to work with the new eos() logic.Nicola Mettifogo
svn-id: r34945
2008-09-14Big patch changing semantics of ReadStream::eos():Willem Jan Palenstijn
eos() now only returns true _after_ trying to read past the end of the stream. This has a large potential for regressions. Please test! svn-id: r34549
2008-08-31Uniformed the interface of Parallaction class (and its hierarchy) with ↵Nicola Mettifogo
regards of gui code, which is now independent of engine version. svn-id: r34219
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-14Finally moved parseNextToken to Script, where it belongs!Nicola Mettifogo
svn-id: r33859
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-28Tiny readability aid for parser code.Nicola Mettifogo
svn-id: r33369
2008-07-26BRA now parses path data from the scripts.Nicola Mettifogo
svn-id: r33295
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-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-04* Implemented character change opcodes in BRANicola Mettifogo
* Fixed loading of dialogue characters in BRA svn-id: r32529
2008-06-03PARA: Fixed some memory leaksChristopher Page
svn-id: r32519
2008-06-03Fixed initialization of parsers, necessary after the latest removal of ↵Nicola Mettifogo
static arrays. svn-id: r32509
2008-06-02Merged revisions ↵Christopher Page
32348-32349,32351-32356,32358-32411,32413-32441,32443-32445,32449,32453-32454,32456-32457,32459-32462,32464-32465,32467-32492,32494-32503 via svnmerge from https://scummvm.svn.sourceforge.net/svnroot/scummvm/scummvm/trunk svn-id: r32505
2008-06-02PARA: Got rid of calls to system->quit() so that the Parallaction engine can ↵Christopher Page
return to the launcher. Also fixed a couple of memory leaks. svn-id: r32504
2008-06-01Got rid of the static arrays for initialization of parsers and exec opcodes, ↵Nicola Mettifogo
to make returning to launcher easier. The code has been borrowed by Kyra, after suggestion by LordHoto. svn-id: r32465
2008-05-11Renamed some parallaction member vars to have a leading underscore (besides ↵Max Horn
being part of our code formatting conventions, this fixes various name clash warnings) svn-id: r32041
2008-05-11Cleanup of parsing code.Nicola Mettifogo
svn-id: r31999
2008-05-10Extracted script parsing code to its own class.Nicola Mettifogo
svn-id: r31972
2008-05-09Moved location parsing out of the engines, to LocationParser_ns and ↵Nicola Mettifogo
LocationParser_br. svn-id: r31958
2008-05-04Added new Parser class, which will gradually grow to include all parsing ↵Nicola Mettifogo
code from the engine class. svn-id: r31865
2008-04-06Replaced custom ManagedList with Common::SharedPtr.Nicola Mettifogo
svn-id: r31415
2008-02-03Fixed maximum token length for the parser.Nicola Mettifogo
svn-id: r30776
2007-10-14Integrated low-level routines into the Script class, turning it into a ↵Nicola Mettifogo
self-contained parser for location, program and table scripts. svn-id: r29221
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-07-08Yet another fix for broken parsing/displaying of strings. Now quotes are ↵Nicola Mettifogo
properly considered when they are needed, and ignored when they aren't. svn-id: r27967
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-13cleanupNicola Mettifogo
svn-id: r26834
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