Commit graph

72 commits

Author SHA1 Message Date
Torbjörn Andersson
eeb212c7e0 Indent with tabs instead of spaces.
svn-id: r30312
2008-01-06 20:42:28 +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
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
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
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
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
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
aa1175ed13 Encapsulated palette stuff into a new Palette object and got rid of a lot of #defines. This should ease handling of palettes in different versions of the engine.
svn-id: r28509
2007-08-09 18:02:37 +00:00
Nicola Mettifogo
d340961f78 Fixed some memory leaks.
svn-id: r28503
2007-08-09 11:42:26 +00:00
Travis Howell
760986259c Fix compile warnings.
svn-id: r28501
2007-08-09 05:43:58 +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
Nicola Mettifogo
797f114aac - Renamed BitBuffer to MaskBuffer
- Added PathBuffer to handle 1-bit buffers for walkable areas
- Changed relevant walk code to use PathBuffer objects for querying screen dimensions.

svn-id: r28478
2007-08-06 22:03:17 +00:00
Nicola Mettifogo
16f161f689 Made disk code directly create background Surface from resources.
svn-id: r28475
2007-08-06 20:07:57 +00:00
Nicola Mettifogo
7c20288ba1 Removed useless mask width and size data members from engine.
svn-id: r28474
2007-08-06 19:43:33 +00:00
Nicola Mettifogo
14448af3bb Made disk code directly create mask BitBuffer from resources.
svn-id: r28473
2007-08-06 19:39:00 +00:00
Travis Howell
92c90ab8d6 Remove debug code.
svn-id: r28268
2007-07-28 14:10:25 +00:00
Nicola Mettifogo
7059a69bde Fixed bug #1762638. Mask filenames weren't chosen correctly when not explicitly specified by scripts.
svn-id: r28267
2007-07-28 13:56:27 +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
Renamed from engines/parallaction/disk.cpp (Browse further)