Commit Graph

49 Commits

Author SHA1 Message Date
Max Horn
c7fde102e3 Renamed FilesystemNode -> FSNode
svn-id: r34716
2008-10-02 16:58:59 +00:00
Max Horn
531bcf847c Moved FilesystemNode / FSList to namespace Common; also got rid of some 'typedef Common::String String;' name aliases
svn-id: r34302
2008-09-03 11:22:51 +00:00
Nicola Mettifogo
05a021fd95 Added routines to load and handle item masks: animation are now correctly 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-15 14:25:43 +00:00
Nicola Mettifogo
3ec28ce42c Removed debug code I forgot a long time ago ;)
svn-id: r33510
2008-08-02 02:26:09 +00:00
Nicola Mettifogo
0679889d98 Disabled masks in BRA Amiga, because the decoding is not known yet.
svn-id: r33473
2008-07-31 14:20:51 +00:00
Travis Howell
598394e5b8 Mask files don't always exist in Amiga version of BRA, in paricular NULL.msk.
svn-id: r33394
2008-07-29 04:06:10 +00:00
Travis Howell
fd40cb4342 Add check common directories, in loadScenery() for Amiga version of BRA.
svn-id: r33393
2008-07-29 04:00:07 +00:00
Nicola Mettifogo
c8400e9725 * Fixed positioning of balloons and faces in BRA (dos, at least).
* Adapted loading of faces.

svn-id: r33392
2008-07-29 03:14:35 +00:00
Nicola Mettifogo
a5d225d438 Fixed loading of static items.
svn-id: r33375
2008-07-28 14:02:46 +00:00
Travis Howell
533dbfd756 Add basic support for running Amiga and PC demos of BRA.
svn-id: r33357
2008-07-28 07:20:55 +00:00
Travis Howell
258f1e8fe6 There is no mask or path directories for part0 of BRA (Amiga), so always check whether they exist.
svn-id: r33356
2008-07-28 06:18:39 +00:00
Nicola Mettifogo
03ffd60054 * Changed Disk code in BRA to use FilesystemNode (duplication has become truly visible!).
* Fixed Inventory items loading.

svn-id: r33352
2008-07-28 05:18:23 +00:00
Nicola Mettifogo
d223e90002 Inventory icons are now loaded correctly (not yet displayed). BRA doesn't crash anymore when pressing the right button. :)
svn-id: r33335
2008-07-27 13:43:40 +00:00
Travis Howell
4c7420125e Add music/sound loading in Amiga version of BRA.
svn-id: r33329
2008-07-27 10:43:15 +00:00
Travis Howell
e0503bc549 Search common directory, when loading frames and talks in Amiga verison of BRA.
svn-id: r33327
2008-07-27 10:36:26 +00:00
Nicola Mettifogo
8ed023142a Moved program and command execution code out of the engine, into their own brand new
classes.

svn-id: r33003
2008-07-11 13:06:28 +00:00
Nicola Mettifogo
03cd937b13 Fixed destruction of sprites in BRA.
svn-id: r32983
2008-07-10 02:00:54 +00:00
Nicola Mettifogo
59e672ef40 Changed balloons to use GfxObj as well. Next step is to integrate balloons for BRA.
svn-id: r32883
2008-07-03 10:31:25 +00:00
Nicola Mettifogo
d8645297cd Changed all remaining code to use the GfxObj class to keep frames data. This allows for more uniform processing during rendering, and also fixes the display of dialogue faces for BRA.
svn-id: r32833
2008-06-29 09:30:32 +00:00
Nicola Mettifogo
73832f2edd * Implemented character change opcodes in BRA
* Fixed loading of dialogue characters in BRA

svn-id: r32529
2008-06-04 09:07:55 +00:00
Nicola Mettifogo
a3794c5f37 Partly fixed loading of bitmaps in BRA Amiga. Bitmaps are still broken, but less than before.
svn-id: r31864
2008-05-04 15:06:47 +00:00
Nicola Mettifogo
ff2dfb6a4e Cleanup of background loading for BRA.
svn-id: r31531
2008-04-17 09:30:04 +00:00
Travis Howell
27816d8c8b Add very basic support for Amiga version of BRA.
svn-id: r31416
2008-04-06 07:05:56 +00:00
Nicola Mettifogo
715e33d63d Correctly implemented little-endian masks in BRA.
svn-id: r30807
2008-02-06 13:57:44 +00:00
Nicola Mettifogo
249c0b0a05 Corrected mask and path loading in BRA.
svn-id: r30805
2008-02-06 13:44:01 +00:00
Nicola Mettifogo
aea99780ef Implemented a couple more opcodes and added capability to load/display static images in BRA.
svn-id: r30770
2008-02-03 16:51:38 +00:00
Nicola Mettifogo
748a90ca23 Added code to unpack and render animations in BRA.
svn-id: r30755
2008-02-03 10:48:07 +00:00
Nicola Mettifogo
899fdcb367 Enabled rudimentary location switch in BRA.
svn-id: r30748
2008-02-02 22:45:31 +00:00
Nicola Mettifogo
ed09766acc BRA now loads and displays location backgrounds (at least in the intro).
svn-id: r30740
2008-02-02 13:57:29 +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
6471eb84f2 Cleanup.
svn-id: r29556
2007-11-18 13:22:38 +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
ef0df159f1 * moved Table handling to objects.cpp
* 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-17 18:22:52 +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
d95994e660 Fix build.
svn-id: r28569
2007-08-12 20:27:45 +00:00
Nicola Mettifogo
3465571b12 Added preliminary support for loading locations in BRA:
- changed parseLocation to invoke subclasses for version-specific keywords.
- implemented loading of background resources (backgrounds should be visible)

svn-id: r28568
2007-08-12 19:11:37 +00:00
Nicola Mettifogo
10ee427772 Changed signature of disk routines for backgrounds to something resembling revisions prior to 28524, yet keeping the new useful BackgroundInfo struct. Those routines can now be used to fill specific fields of the struct, instead of having them create a new one at each call.
This feature is needed by BRA, since background, mask and path are specified by different instructions in the script.

svn-id: r28566
2007-08-12 17:13:21 +00:00
Nicola Mettifogo
0ec634ea06 Fixed location retrieval.
svn-id: r28565
2007-08-12 13:54:31 +00:00
Nicola Mettifogo
a3e1907837 Added more resource loading.
svn-id: r28563
2007-08-12 13:47:19 +00:00
Nicola Mettifogo
de30651476 Disk can now load tables for BRA.
svn-id: r28561
2007-08-12 13:21:45 +00:00
Nicola Mettifogo
ccfd109e25 Added partial cursor support for Big Red Adventure. Small adjustments to generalize disk code for multiple cursors.
svn-id: r28537
2007-08-11 21:08:08 +00:00
Nicola Mettifogo
81b864e9e8 Added preliminary font support for Big Red Adventure.
svn-id: r28529
2007-08-11 14:26:12 +00:00
Nicola Mettifogo
1d0541a1db Since splash screen graphics will be called slides (like in Nippon Safes), loading code has been moved to loadSlide. Related code in engine has been refactored as well.
svn-id: r28527
2007-08-11 14:18:00 +00:00
Nicola Mettifogo
8c2ae45ab4 Overhaul of background/mask/path handling:
- added new BackgroundInfo structure
- added helper functions to aid management of BackgroundInfo. Engine is now responsible for allocation/deallocation.
- simplified loading and handling of background resources.

svn-id: r28524
2007-08-11 13:07:21 +00:00
Nicola Mettifogo
a644817966 Added code to load and display splash screens for BRA. The game crashes afterwards.
svn-id: r28511
2007-08-09 19:26:20 +00:00
Nicola Mettifogo
d800f33ff1 Turned StaticCnv struct into stock Graphics::Surface, and changed all relevant code.
svn-id: r28484
2007-08-07 15:08:45 +00:00
Travis Howell
bb2796c57a Add support for multi-tune Protracker modules used in the Amiga version of Waxworks.
svn-id: r28256
2007-07-28 07:52:24 +00:00
Nicola Mettifogo
67869d2c10 - Moved disk code for Nippon Safes in new file disk_ns.cpp, adding _ns suffix to classes and member functions.
- Added function stubs into new file disk_br.cpp for Big Red Adventure [IT STILL CRASHES!].
- Modified engine to create the proper Disk manager object.

svn-id: r28246
2007-07-27 19:02:19 +00:00