Commit Graph
345 Commits
Author SHA1 Message Date
Nicola Mettifogo 6d3a7e4f6b Moved some static members into Parallaction class.
svn-id: r31755
2008-04-28 09:42:29 +00:00
Nicola Mettifogo d4c8d4e18f Fixed usage of SharedPtr, so that reference counting is proper and there are no more objects that need constructors at global level (helps PalmOS).
svn-id: r31533
2008-04-17 09:32:57 +00:00
Nicola Mettifogo 3d1a2e2049 Replaced custom ManagedList with Common::SharedPtr.
svn-id: r31415
2008-04-06 05:40:02 +00:00
Nicola Mettifogo 435c437f6d More refactoring for command parsing/execution.
svn-id: r30841
2008-02-09 23:26:45 +00:00
Nicola Mettifogo 246fbfd1e4 Added experimental debug feature: variables influencing the rendering that can be set via console using the 'set' command. The implementation is still partial. Leveraging on this, the engine can now selectively display the current background mask instead of the background itself.
svn-id: r30808
2008-02-06 14:05:08 +00:00
Nicola Mettifogo dabefdce05 Changed main loop to allow BRA to return to menu after intro.
svn-id: r30798
2008-02-05 10:24:22 +00:00
Nicola Mettifogo fea63a5181 Fixed maximum token length for the parser.
svn-id: r30776
2008-02-03 17:06:45 +00:00
Nicola Mettifogo a53d87791d - Character is now initialized when needed (for the moment only by NS)
- Forward lists are now bigger since BRA scripts are larger

svn-id: r30769
2008-02-03 16:02:21 +00:00
Nicola Mettifogo 85171eadaa Programs are now handled in their own list, instead of being accessed via the referring Animation.
svn-id: r30768
2008-02-03 14:58:16 +00:00
Nicola Mettifogo 899fdcb367 Enabled rudimentary location switch in BRA.
svn-id: r30748
2008-02-02 22:45:31 +00:00
Nicola Mettifogo 015ad5e469 Some more integration of background code into BackgroundInfo.
svn-id: r30731
2008-02-02 09:48:07 +00:00
Nicola Mettifogo 1a36ba488c Cleanup (step 1).
svn-id: r30689
2008-01-28 20:40:05 +00:00
Nicola Mettifogo 68fc3f1dee Removed usage of kBitFront and kBitBack. Only the old kBit2 buffer is kept to store the background picture.
svn-id: r30687
2008-01-28 19:56:29 +00:00
Nicola Mettifogo 56eed45317 Move low level background management into Gfx.
svn-id: r30681
2008-01-28 17:28:16 +00:00
Nicola Mettifogo 3c2c16c705 Fixed animation sorting: everything should be drawn like before revision 30673 now. Character may still disappear when changing location because of wrong resource management, though.
svn-id: r30680
2008-01-28 16:52:41 +00:00
Nicola Mettifogo cce8e25960 Removed all job routines. Stubs have been left for future reference in the code for BRA.
svn-id: r30675
2008-01-28 13:10:49 +00:00
Nicola Mettifogo be2c5d3c87 All interactive objects are now drawn in the framebuffer instead of using 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-28 12:20:53 +00:00
Jordi Vilalta Prat d6c34bdc4b Fixed the spaces before tabs.
svn-id: r30667
2008-01-28 00:14:17 +00:00
Nicola Mettifogo bdf440fdae Replaced the remaining old string code with the new label code. All the text is now drawn in the framebuffer instead of being blitted onto the internal game screen buffer.
svn-id: r30360
2008-01-09 21:46:57 +00:00
Nicola Mettifogo e21fd496f8 Restructured label handling and moved all related code to Gfx.
svn-id: r30345
2008-01-08 20:46:58 +00:00
Nicola Mettifogo 1b80eedaa1 Added a proper _name member to Zone, instead of using the label text.
svn-id: r30343
2008-01-08 20:32:29 +00:00
Torbjörn Andersson eeb212c7e0 Indent with tabs instead of spaces.
svn-id: r30312
2008-01-06 20:42:28 +00:00
Nicola Mettifogo db51514dd3 Moved balloons management into Gfx, which is now responsible for positioning and drawing. All balloons are now drawn on a different layer than the game graphics, thus simplifying screen management. Dialogue code has undergone a major revision, and the superior implementation of answer selection in the Amiga version is now used in place of the poor PC one. Other bits (where some changes had already been introduced) have been updated, too.
svn-id: r30311
2008-01-06 19:29:41 +00:00
Max Horn a556368c99 Update mouse coordinates onn *all* mouse events, i.e. also after click events
svn-id: r29657
2007-11-28 15:00:41 +00:00
Nicola Mettifogo 919c0a2833 * added adapter from Graphics::Surface to Frames
* 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-22 21:51:33 +00:00
Nicola Mettifogo d8e8050015 * added (incomplete) explicit state machine handling in engine class (see _inputMode)
* added service routines to Gfx
* changed displayCharacterComment to work with the new state machine and gfx routines

svn-id: r29613
2007-11-22 21:19:44 +00:00
Nicola Mettifogo 6af9577e84 * moved label drawing into Gfx, to be drawn directly in the framebuffer
* changed low level blitting function to accept Graphics::Surface to ease development
* temporarily disabled labels/subtitles in BRA

svn-id: r29593
2007-11-21 20:04:14 +00:00
Nicola Mettifogo f8e1da5b60 * made engine use Inventory and InventoryRenderer
* inventory drawing is now performed directly in the framebuffer instead of using the game screen buffer
* specialized jobs to handle inventory drawing have been deleted as they had become obsolete

svn-id: r29571
2007-11-19 20:46:28 +00:00
Nicola Mettifogo d86246308d Walk and script handling are now directly handled by the main loop, instead of relying on the job list.
svn-id: r29568
2007-11-19 20:23:01 +00:00
Nicola Mettifogo 28289fb694 Cleanup.
svn-id: r29562
2007-11-18 21:32:22 +00:00
Nicola Mettifogo 7731af9833 Partly decoupled rendering from game data update. Graphics routines to draw/erase animations and labels are now invoked explicitly instead of being handled in the job list.
svn-id: r29561
2007-11-18 21:16:27 +00:00
Nicola Mettifogo 9e58b0253d Removed other paranoia code from the original engine (as in revision 29505).
svn-id: r29558
2007-11-18 18:04:41 +00:00
Nicola Mettifogo 6471eb84f2 Cleanup.
svn-id: r29556
2007-11-18 13:22:38 +00:00
Nicola Mettifogo a3abaaa709 Refactored main input code.
svn-id: r29532
2007-11-17 09:39:20 +00:00
Nicola Mettifogo 0dc9a12db9 Removed an unclear (paranoid?) continue statement from the original engine. We are just doing a screen update more than the original this way. If this is bad, then we can go back, but for now, let the execution flow.
svn-id: r29505
2007-11-14 22:31:53 +00:00
Nicola Mettifogo 10caba3562 * centralized kEngineChangeLocation flag handling
* simplified runGame, moving flags testing into called routines

svn-id: r29504
2007-11-14 22:24:26 +00:00
Nicola Mettifogo 9038ee9115 Fixed regression: loading from the start screens was messing up game flags.
svn-id: r29439
2007-11-06 20:49:50 +00:00
Nicola Mettifogo 684db15b34 * Pushed specific code from base class down to Nippon Safes.
* Some refactoring of the main loop.

svn-id: r29407
2007-11-04 10:45:10 +00:00
Eugene Sandulenko c640d1c604 Patch #1825276: "DETECTION: advanced detector engine simplification"
svn-id: r29386
2007-11-03 21:06:58 +00:00
Nicola Mettifogo 610d9a2ce7 Fixed overflow after fadeout in the last game location (bug #1824026).
svn-id: r29374
2007-11-02 08:34:56 +00:00
Nicola Mettifogo ca1b941d02 Donna now returns to her normal outfit after swimming.
svn-id: r29373
2007-11-01 23:31:28 +00:00
Nicola Mettifogo 793553c1b4 Made debug console available when displaying slides (like intermissions and menu).
svn-id: r29370
2007-11-01 21:23:48 +00:00
Nicola Mettifogo 555336cebe Fix for bug #1822819. Donna now changes her look into Suzy after makeup.
svn-id: r29361
2007-11-01 17:39:58 +00:00
Nicola Mettifogo 512e57c690 Added new LocationName class to simplify handling of location switches.
svn-id: r29353
2007-11-01 13:47:18 +00:00
Nicola Mettifogo ecbd31160e Fix for bug #1822680.
svn-id: r29326
2007-10-30 19:41:55 +00:00
Nicola Mettifogo 9d14d74e8d Temporarily force quits when user presses exit key combination. A TODO comment has been added to places where behavior should be changed to allow the engine to exit gracefully.
svn-id: r29270
2007-10-27 21:29:38 +00:00
Nicola Mettifogo aa01449f29 Relaxed freeZones policy for deciding which zones to preserve across location switches. Special zones are now never deleted even if strictly not needed. This will fix some occasional crashes related to inventory management.
svn-id: r29241
2007-10-21 15:41:21 +00:00
Nicola Mettifogo c68871860a Added new debug level for inventory routines.
svn-id: r29239
2007-10-21 13:10:36 +00:00
Nicola Mettifogo 1c52ea0562 Decoupled password request from actual rendering of the dialogue screen, thus making it possible to fix bug #1765300. This bug was present in the original game, causing garbled text to appear when asking for password (only in the English version).
svn-id: r29213
2007-10-13 21:49:38 +00:00
Nicola Mettifogo 8a73ce38bb Added beep sound to Nippon Safes for Amiga.
svn-id: r29171
2007-10-07 19:18:41 +00:00