aboutsummaryrefslogtreecommitdiff
path: root/engines/parallaction/objects.h
AgeCommit message (Collapse)Author
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-04Implemented counters in BRA. Only valid answer options are shown, and ↵Nicola Mettifogo
counter calculations in scripts are performed. svn-id: r35723
2008-12-26Fixed selection of invalid frame numbers. This means that most locations can ↵Nicola Mettifogo
be switched to and don't crash up anymore! svn-id: r35550
2008-12-24Questions in dialogues can have up to 10 answers in BRA.Nicola Mettifogo
svn-id: r35524
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-13* Replaced char* with Common::String in the parser.Nicola Mettifogo
* Enforced const-correctness on related routines. svn-id: r35326
2008-08-26Cleanup.Nicola Mettifogo
svn-id: r34185
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-15Simplified handling of script variables (especially locals).Nicola Mettifogo
svn-id: r33889
2008-07-29* Added flexible verb configuration for both NS and BRA.Nicola Mettifogo
* Objects can now be really opened and closed in BRA. svn-id: r33405
2008-07-28Preliminary code for traps.Nicola Mettifogo
svn-id: r33364
2008-07-28Added a post processing step to runScripts, so that Animation can be ↵Nicola Mettifogo
validated after buggy scripts have been executed. svn-id: r33363
2008-07-26BRA now parses path data from the scripts.Nicola Mettifogo
svn-id: r33295
2008-07-02- Changed labels to be GfxObj's, thus removing the Label object altogether.Nicola Mettifogo
- Changed Item's to be almost GfxObj's, since ownership and destruction of underlying resource is an issue here (got to think some more about it). svn-id: r32873
2008-06-29Changed all remaining code to use the GfxObj class to keep frames data. This ↵Nicola Mettifogo
allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA. svn-id: r32833
2008-06-22Added constructor and destructor to Dialogue, thus fixing a long standing leak.Nicola Mettifogo
svn-id: r32757
2008-05-09Tiny cleanup to ease extraction of the program parser code.Nicola Mettifogo
svn-id: r31959
2008-05-08Reverted commit 31928 by Buddha_, and defined kFlagsAll as 0xFFFFFFFFU in ↵Nicola Mettifogo
the enum, as suggested by Fingolfin. svn-id: r31939
2008-05-07A (temporary?) fix for the signed/unsigned issues with enum CommandFlags usage.Kari Salminen
svn-id: r31928
2008-05-05- Moved some members from the engine class to Location, since they belong there.Nicola Mettifogo
- Cleaned up usage of location flags by using accessor functions. svn-id: r31872
2008-04-06Replaced custom ManagedList with Common::SharedPtr.Nicola Mettifogo
svn-id: r31415
2008-02-09More refactoring for command parsing/execution.Nicola Mettifogo
svn-id: r30841
2008-02-09Added new debug command to dump scripts execution status.Nicola Mettifogo
svn-id: r30840
2008-02-03Programs are now handled in their own list, instead of being accessed via ↵Nicola Mettifogo
the referring Animation. svn-id: r30768
2008-01-28All interactive objects are now drawn in the framebuffer instead of using ↵Nicola Mettifogo
the old kBitBack/kBitFront buffers. Animation are not sorted yet, so they can overlap in an inconsistent fashion for the time being. svn-id: r30673
2008-01-28Fixed the spaces before tabs.Jordi Vilalta Prat
svn-id: r30667
2008-01-09Replaced the remaining old string code with the new label code. All the text ↵Nicola Mettifogo
is now drawn in the framebuffer instead of being blitted onto the internal game screen buffer. svn-id: r30360
2008-01-08Restructured label handling and moved all related code to Gfx.Nicola Mettifogo
svn-id: r30345
2008-01-08Removed useless members.Nicola Mettifogo
svn-id: r30344
2008-01-08Added a proper _name member to Zone, instead of using the label text.Nicola Mettifogo
svn-id: r30343
2008-01-06Indent with tabs instead of spaces.Torbjörn Andersson
svn-id: r30315
2007-11-22* added adapter from Graphics::Surface to FramesNicola Mettifogo
* changed all Disk routines to return Frames* instead of Graphics::Surface* * changed displayItemComment to use new gfx routines * merged code for Examine zones into displayComment svn-id: r29615
2007-11-21* moved label drawing into Gfx, to be drawn directly in the framebufferNicola Mettifogo
* changed low level blitting function to accept Graphics::Surface to ease development * temporarily disabled labels/subtitles in BRA svn-id: r29593
2007-11-18Cleanup.Nicola Mettifogo
svn-id: r29556
2007-10-19Added new debugger command 'localflags' and changed Table object to provide ↵Nicola Mettifogo
debug info for it. svn-id: r29230
2007-09-17* moved Table handling to objects.cpp Nicola Mettifogo
* added helper functions to load tables from files * fixed occasional lock-ups on location change because of broken Table deallocation svn-id: r28933
2007-09-02Simplified global label management and added subtitles for BRA.Nicola Mettifogo
svn-id: r28828
2007-08-26Implemented more opcodes.Nicola Mettifogo
svn-id: r28746
2007-08-25Added an abstract base class for representing multiple-frames for ↵Nicola Mettifogo
animations. Changed user code to rely on the new interface. Cnv has been turned into an implementation of the new interface, and it is now known as a concrete class only to Disk and Font code for Nippon Safes. svn-id: r28734
2007-08-25Merged most parser contexts into a single structure, added some new fields ↵Nicola Mettifogo
to support BRA. svn-id: r28727
2007-08-25Cleanup script routines.Nicola Mettifogo
svn-id: r28718
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