Commit graph

455 commits

Author SHA1 Message Date
Gregory Montoir
8d76879849 cleanup
svn-id: r17740
2005-04-21 19:27:17 +00:00
Travis Howell
d7f263ff1a Add palette function for HE99+ games.
svn-id: r17737
2005-04-21 16:02:37 +00:00
Travis Howell
098e0cce58 Add palette function foe He99+ games.
svn-id: r17736
2005-04-21 15:40:40 +00:00
Max Horn
7b93b0e079 Moved v2 verb code into class ScummEngine_v2
svn-id: r17725
2005-04-20 23:53:29 +00:00
Max Horn
7963bb4cb9 Renamed _mouseButStat -> _mouseAndKeyboardStat (that's what it really is); moved _audioNames to class IMuseDigital
svn-id: r17723
2005-04-20 23:33:35 +00:00
Max Horn
c04ad861fe Moved some more VARs; added comments to some of the vars which explain where they are used
svn-id: r17722
2005-04-20 23:13:11 +00:00
Max Horn
b724929466 Split initScummVars and overload it; this makes it possible to define more VARS in subclasses
svn-id: r17721
2005-04-20 20:34:44 +00:00
Travis Howell
94e554a670 Rename sprite field for HE games.
svn-id: r17706
2005-04-20 05:24:02 +00:00
Eugene Sandulenko
89ca4bf716 Since lost/smaller use default windows cursor we setup our own
svn-id: r17705
2005-04-20 03:13:06 +00:00
Travis Howell
d391c2f837 Adjust again, for sound header differences.
svn-id: r17668
2005-04-18 11:44:01 +00:00
Travis Howell
d4ba67a497 Use correct music offsets for HE games, only a few demos use wrong tunes now.
Get all music details for HE games from one function only.

svn-id: r17662
2005-04-18 07:18:33 +00:00
Max Horn
96e40213ef New virtual method getObjectIdFromOBIM
svn-id: r17660
2005-04-17 23:19:16 +00:00
Max Horn
c4e7f403f8 Split out some index reading code into a new method readIndexBlock()
svn-id: r17659
2005-04-17 22:59:43 +00:00
Travis Howell
a3882f3af7 Add HE7.2 difference in o_getResourceSize().
Add support for checking size of music resource.

svn-id: r17595
2005-04-14 06:06:59 +00:00
Gregory Montoir
dbfd703d51 Updated comment
svn-id: r17590
2005-04-13 19:48:49 +00:00
Travis Howell
4b7999b6fa Ooops, was not used.
svn-id: r17582
2005-04-13 10:40:06 +00:00
Travis Howell
d3ea799f23 _stringBuffer can have mutple strings, ie in pajama2 startup.
Add safety check for buffer size.

svn-id: r17581
2005-04-13 10:34:47 +00:00
Travis Howell
973b4073c9 Sync.
svn-id: r17561
2005-04-12 02:35:59 +00:00
Travis Howell
dea27e2c63 Work in progress on opcodeE0 for HE games.
Cleanup.

svn-id: r17560
2005-04-12 02:29:50 +00:00
Gregory Montoir
863007c5fb added processWizImage mode 10
svn-id: r17545
2005-04-11 17:59:55 +00:00
Travis Howell
0c5253c1eb Add a few extra sprite correction and functions, based off HE100.
svn-id: r17536
2005-04-11 07:40:14 +00:00
Travis Howell
b40fa83d41 Add initial rmap support for wizImages.
svn-id: r17497
2005-04-10 01:25:33 +00:00
Max Horn
cfe85b8618 Don't call allocateArrays from readMAXS, rather call it explicitly after calling readMAXS; init _palManipCounter in the proper place (only needed when restarting); free palManip data on exit
svn-id: r17495
2005-04-10 00:51:47 +00:00
Max Horn
d7c1017fe4 Pedantic cleanup
svn-id: r17490
2005-04-09 20:26:51 +00:00
Max Horn
81e34e9110 Overload getStringAddress in subclasses; moved V6-V8 specific res stuff to resource.cpp
svn-id: r17489
2005-04-09 20:22:31 +00:00
Gregory Montoir
16061e0f42 minor corrections and cleanup
svn-id: r17471
2005-04-09 08:55:26 +00:00
Travis Howell
73d1d63f15 Add opcode for chase, playable now.
svn-id: r17469
2005-04-09 06:39:20 +00:00
Travis Howell
2d40caf7ad Add opcode stub for chase
svn-id: r17468
2005-04-09 06:26:12 +00:00
Travis Howell
dbc4d13b3d load/save sprite data in HE90+ games.
svn-id: r17459
2005-04-08 23:27:36 +00:00
Travis Howell
2a5aaf9fc2 Add HE70+ version of seekFilePos opcode.
svn-id: r17450
2005-04-08 11:10:01 +00:00
Travis Howell
c11827c219 Split readMAXS between HE versions
svn-id: r17435
2005-04-07 11:43:38 +00:00
Travis Howell
810861fdf5 Move hePalettes allocation to HE99.
svn-id: r17434
2005-04-07 11:15:10 +00:00
Travis Howell
6ced0d698a Add WIP on hePalette.
svn-id: r17431
2005-04-07 10:43:51 +00:00
Travis Howell
19ff0b0085 Add hePalette function.
svn-id: r17424
2005-04-06 23:56:50 +00:00
Travis Howell
eeb70bdfd2 Writing into wizImage no longer crashes.
svn-id: r17386
2005-04-05 14:42:36 +00:00
Travis Howell
aeec229615 getScriptSlot() must start from slot 1, required for nukeArrays() in HE games.
svn-id: r17383
2005-04-05 11:06:03 +00:00
Travis Howell
74c124628a Muddled ifs
svn-id: r17373
2005-04-04 11:47:38 +00:00
Max Horn
789cad236c Splitting more methods into multiple overloaded versions
svn-id: r17366
2005-04-03 23:53:34 +00:00
Max Horn
3feadcac28 Turned readRoomsOffsets into a virtual method
svn-id: r17363
2005-04-03 22:56:02 +00:00
Max Horn
1419f0d5ef Split readResTypeList into a normal and a GF_OLD_BUNDLE version; added comments to many of the GF_ feature flags; removed GF_DRAWOBJ_OTHER_ORDER (it was only use by Sam&Max, I switched that to a direct check for Sam&Max)
svn-id: r17362
2005-04-03 22:10:10 +00:00
Max Horn
b507231f71 ScummEngine_v4 used to be a subclass of ScummEngine_v3, now it is the other way around; added a new class ScummEngine_v3old, for GF_OLD_BUNDLE games; took advantage of the new inheritance structure and turned various methods into virtual methods which then are overriden in subclasses
svn-id: r17346
2005-04-03 15:06:08 +00:00
Travis Howell
27cba7619e More sprite renames
svn-id: r17342
2005-04-03 02:24:28 +00:00
Gregory Montoir
7b88503437 initial implementation of o72_arrayOps_127 and o90_sortArray
svn-id: r17337
2005-04-02 17:19:44 +00:00
Max Horn
9f01b54bcf Turned setupRoomObject into a virtual method
svn-id: r17326
2005-04-01 13:05:40 +00:00
Travis Howell
2eab3e51eb Add bits and pieces
More renames

svn-id: r17325
2005-04-01 12:43:13 +00:00
Travis Howell
d80f9ccd40 Add support for clipping of wizImages.
Add support for altering wizImages.
Various renames.

svn-id: r17322
2005-04-01 08:51:13 +00:00
Travis Howell
cdd21c361b Remove resource type argument in wizImage functions, it is always rtImage.
Rename sprite flags/functions
Remove unused sprite flags
Switch sprite flags back to hex. for easier comparison

svn-id: r17319
2005-04-01 06:30:46 +00:00
Travis Howell
204809625f Rename paletteNum field for sprite in wizImages.
svn-id: r17312
2005-03-31 22:51:54 +00:00
Travis Howell
5a890eedd3 Add code for more o90_getPolygonOverlap() cases.
svn-id: r17304
2005-03-31 02:28:14 +00:00
Travis Howell
6bb533f936 Cleanup
svn-id: r17292
2005-03-30 11:49:53 +00:00