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
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
899fdcb367
Enabled rudimentary location switch in BRA.
...
svn-id: r30748
2008-02-02 22:45:31 +00:00
Nicola Mettifogo
5306701eab
Allowed BackgroundInfo to display bitmaps smaller than the screen and other small tweaks to re-enable splash screens in BRA.
...
svn-id: r30732
2008-02-02 10:18:31 +00:00
Nicola Mettifogo
ccc0f6b92d
Slightly simplified Archive selection when loading resources.
...
svn-id: r30714
2008-01-31 10:38:15 +00:00
Nicola Mettifogo
0e02a9398a
Cleanup (step 2). No code outside Gfx reference screen buffers anymore.
...
svn-id: r30695
2008-01-29 09:37:03 +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
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
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
Torbjörn Andersson
eeb212c7e0
Indent with tabs instead of spaces.
...
svn-id: r30312
2008-01-06 20:42:28 +00:00
Nicola Mettifogo
3e04d8b215
Fix for bug# 1729307. Fonts are now displayed with shadows when needed on Amiga. The correct font for intro screen has also been selected.
...
svn-id: r30221
2008-01-04 21:24:51 +00:00
Nicola Mettifogo
9bb72bf188
Fixed bug in Nippon Safes for Amiga, Italian version. Game now doesn't crash anymore when starting introduction.
...
svn-id: r30173
2008-01-02 22:06:49 +00:00
Nicola Mettifogo
0b0ec8ee00
* Switched Nippon Safes to use new names for savefiles. User will be asked to perform conversion on engine start.
...
* Special files used for keeping track of completed parts of the game have been replaced by special savefile 'nippon.999'.
svn-id: r29820
2007-12-10 20:29:51 +00:00
Nicola Mettifogo
bf2bc3db80
Fix for bug #1837503 . Location switches can be scheduled recursively, so now flags needed to be handled in a safer way to prevent inconsistencies.
...
svn-id: r29763
2007-12-08 11:07:03 +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
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
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
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
06f38474a5
Consolidated game data cleanup in a single routine to location switches more reliable, especially on savegames and on game start.
...
svn-id: r29357
2007-11-01 15:58:33 +00:00
Nicola Mettifogo
c7f315b32c
Fix regression introduced in revision 29355. First loadgame performed was destroying the game flags.
...
svn-id: r29356
2007-11-01 15:15:43 +00:00
Nicola Mettifogo
7c8bf86a45
More refactoring for gui code.
...
svn-id: r29355
2007-11-01 14:47:33 +00:00
Nicola Mettifogo
288f47e034
* Merged object Menu into Parallaction_ns.
...
* Some preliminary refactoring of ex-menu code.
svn-id: r29354
2007-11-01 14:08:55 +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
22c4aa0602
Parallaction will now consume all the short-lived jobs in the queue before a location switch. These jobs only live for 1 or 2 engine loops, and can refer to items in the location being dropped. This situation used to lead to segfaults like the one reported in report #1762797 (that should be now fixed).
...
svn-id: r29263
2007-10-26 20:35:06 +00:00
Nicola Mettifogo
03d5111a74
Fixed parseLocation, so that it only tries to parse scripts when they aren't already loaded. This fixes bugs like #1816899 , caused by the wrong data archive being selected in the Disk object.
...
svn-id: r29240
2007-10-21 15:26:07 +00:00
Nicola Mettifogo
8a73ce38bb
Added beep sound to Nippon Safes for Amiga.
...
svn-id: r29171
2007-10-07 19:18:41 +00:00
Nicola Mettifogo
05abbf49a2
Moved most of inventory-related code inside classes Inventory and InventoryRenderer. Shift is not completed, as new code doesn't handle selections yet (falling back to existent code).
...
svn-id: r29060
2007-09-23 20:17:50 +00:00
Nicola Mettifogo
d7ae40b65d
Refactored a lot of Character-related code and put it into the Character class.
...
svn-id: r29025
2007-09-22 18:45:43 +00:00
Nicola Mettifogo
258901bab9
Merged common/stdafx.h into common/scummsys.h. All referencing files have been updated.
...
svn-id: r28966
2007-09-19 08:40:12 +00:00
Nicola Mettifogo
c37de0131b
Revised debug levels and added many debug strings for parsers.
...
svn-id: r28921
2007-09-16 08:43:34 +00:00
Nicola Mettifogo
21e4f4f176
Simplified global label management and added subtitles for BRA.
...
svn-id: r28828
2007-09-02 18:34:11 +00:00
Max Horn
f1f324cee4
fixed some warnings
...
svn-id: r28827
2007-09-02 17:28:00 +00:00
Nicola Mettifogo
af72280fb9
Cleanup: removed unneeded references to engine (_vm).
...
svn-id: r28826
2007-09-02 15:27:25 +00:00
Nicola Mettifogo
60a6d5aa53
Jobs are now members of the engine and are handled with a table, instead of being external functions.
...
svn-id: r28824
2007-09-02 15:17:41 +00:00
Nicola Mettifogo
39e4a9b180
Added an abstract base class for representing multiple-frames for 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-25 20:34:10 +00:00
Nicola Mettifogo
37cdd1c69a
First step in restructuring engine code:
...
- 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-08-24 20:14:51 +00:00
Nicola Mettifogo
76e1be89c3
Partially reverting commit 28568, so now engine is back in charge for parsing locations. I'm going to convert this if/else/else hell into smaller opcode-like routines to achieve more flexibility first, and then assign version-specific opcodes to subclasses.
...
svn-id: r28609
2007-08-14 08:03:13 +00:00