108 Commits

Author SHA1 Message Date
Nicola Mettifogo
beacae5efd Trim resource filenames to 8 characters as a last resort on BRA. Script files are unbelievably broken.
svn-id: r35784
2009-01-08 07:31:32 +00:00
Nicola Mettifogo
f1ad8b6934 Extended PathBuffer to support BRA.
svn-id: r35766
2009-01-07 08:16:18 +00:00
Nicola Mettifogo
21fae9d029 * moved more mask management to BackgroundInfo
* simplified mask management for client code
* reduced the clutter into graphics.h by moving the implementations of BackgroundInfo, MaskBuffer and PathBuffer to graphics.cpp
* preparation for the full implementation of BRA's PathBuffer

svn-id: r35765
2009-01-07 07:35:11 +00:00
Nicola Mettifogo
7e7d5c68ed Initialised variables to silence lots of valgrind's warnings.
svn-id: r35312
2008-12-12 04:52:37 +00:00
Nicola Mettifogo
db88c544b7 Fixed assorted leaks in Parallaction.
svn-id: r35270
2008-12-07 12:41:50 +00:00
Nicola Mettifogo
2be5afee68 Fixed crash when closing BRA.
svn-id: r34943
2008-11-09 05:22:25 +00:00
Nicola Mettifogo
064b816b08 Cleaned up disk code after recent updates to Common::SearchSet.
svn-id: r34848
2008-10-26 09:15:57 +00:00
Johannes Schickel
7d331b7341 Committed updated version of my patch #2184529 "SearchSet: Get rid of SharedPtr usage".
svn-id: r34837
2008-10-22 17:44:12 +00:00
Nicola Mettifogo
1002b82022 Changed BRA to use the new Common:Archive infrastructure.
svn-id: r34777
2008-10-12 07:01:09 +00:00
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