Commit Graph

584 Commits

Author SHA1 Message Date
Travis Howell
fa3688e80f No longer required
svn-id: r17699
2005-04-20 01:38:48 +00:00
Travis Howell
b916eb1975 Add some palette different in HE80+ games.
svn-id: r17674
2005-04-19 04:12:49 +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
Max Horn
adc21c1ac3 Move _numActors to a more sensible place, and make it protected; fix confirmFOODialog() method names to comply with our guidelines
svn-id: r17658
2005-04-17 22:40:45 +00:00
Travis Howell
caae2f00de Add separate function for loading palette from choosen room.
Avoid pointer problems.

svn-id: r17653
2005-04-17 12:55:42 +00:00
Travis Howell
ee62127ace Add mouse state VAR for HE 72+ games.
svn-id: r17631
2005-04-16 14:59:15 +00:00
Travis Howell
57711d54fe puttmoon GID no longer used.
svn-id: r17614
2005-04-16 10:16:31 +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
Eugene Sandulenko
bdbd56406c Patches #1164217 "Updated GS Support + Percussion Remapping Patch" and
#1181750 "Updated Native MIDI documentation". Thanks _tom a lot.

svn-id: r17571
2005-04-13 00:11:49 +00:00
Max Horn
871e278f8b Reduce dependencies on scumm/util.h; modified ScummNESFile a bit so that it complies a bit better with our code formatting rules
svn-id: r17508
2005-04-10 12:59:17 +00:00
Max Horn
475ee92117 Moved some room loading stuff into a new source file
svn-id: r17496
2005-04-10 01:23:33 +00:00
Max Horn
78f2f279c4 Got rid of _dynamicRoomOffsets
svn-id: r17494
2005-04-10 00:33:31 +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
Max Horn
d271b58aa7 Got rid of GF_NEW_OPCODES
svn-id: r17488
2005-04-09 20:13:30 +00:00
Max Horn
34098ae3c7 Simplify the substResFileName system a bit
svn-id: r17475
2005-04-09 11:59:43 +00:00
Travis Howell
61cfe81278 Actor layering only matches in freddicove
svn-id: r17461
2005-04-08 23:54:34 +00:00
Travis Howell
682df447a3 The reverse actor layering only applies to pajama3
svn-id: r17432
2005-04-07 10:54:36 +00:00
Travis Howell
6ced0d698a Add WIP on hePalette.
svn-id: r17431
2005-04-07 10:43:51 +00:00
Max Horn
3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +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
Max Horn
0c1f2aa161 Removed GF_SMALL_NAMES
svn-id: r17368
2005-04-04 00:16:58 +00:00
Max Horn
5b53b4a463 Cleaning up the charset loading code some more
svn-id: r17367
2005-04-04 00:12:41 +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
b5f281e9d8 Cleanup
svn-id: r17333
2005-04-02 14:24:43 +00:00
Max Horn
9f01b54bcf Turned setupRoomObject into a virtual method
svn-id: r17326
2005-04-01 13:05:40 +00:00
Max Horn
ac247c9b94 Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx)
svn-id: r17311
2005-03-31 21:39:31 +00:00
Eugene Sandulenko
7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Max Horn
414fbd0491 Moved ObjectClass to object.h
svn-id: r17280
2005-03-28 22:37:30 +00:00
Max Horn
c5a77afb01 Cleaned up the object mode code; removed the friend class ScummEngine from class Gdi; moved dither code to ScummEngine
svn-id: r17277
2005-03-28 20:18:36 +00:00
Max Horn
abcf7bf2de Tie the AKOS code into the new costume infrastructure, too
svn-id: r17259
2005-03-27 01:07:22 +00:00
Max Horn
5bd26a52df More costume code restructuring
svn-id: r17258
2005-03-27 00:42:53 +00:00
Max Horn
446be21239 Started to overhaul the costume infrastructure a bit, properly separating the NES costume code in the process (sorry if I broke stuff for the NES folks, but I figure it is better to get this done properly now before we have to untangle the mess later)
svn-id: r17257
2005-03-27 00:23:38 +00:00
Max Horn
47ee0ce884 Moved _roomStrips to class Gdi; put some GFX pre-room init code into the new method Gdi::roomChanged(); some more cleanup
svn-id: r17226
2005-03-25 01:52:20 +00:00
Max Horn
c86b18716b Started some cleanup work on class Gdi (in particular, I try to limit that class to GFX decoding only, and moved the screen rendering code out of it)
svn-id: r17225
2005-03-25 01:27:28 +00:00
Max Horn
980576a4b6 Do not use (non-const) local static variables
svn-id: r17221
2005-03-25 00:37:14 +00:00
Eugene Sandulenko
9ab0962f6d Lots of MM NES changes from Quietust and me
o Swap palette entries 0x00 and 0x1D in all necessary places. This gets
    rid of gray background
  o added a function NES_loadCostumeSet(int n) in order to do #1 for sprites
  o Widen screen to 256 pixels and center narrow rooms in it
  o Partial fix for subtitle rendering, now at least first line is
    rendered with identation

svn-id: r17212
2005-03-24 03:22:32 +00:00
Travis Howell
47e9cc1b3a Add string height override for loom
svn-id: r17178
2005-03-18 15:04:37 +00:00
Eugene Sandulenko
f86768fee8 Preliminary support for NES charsets. Colors are wrong and we get glitches
caused by too narrow screen. Also text clearing doesn't work.

svn-id: r17164
2005-03-16 03:20:32 +00:00
Max Horn
6e33b3f0a7 Some cleanup/costume code unification. Note: NES costume code probably should be using subclasses; and maybe we should add AKOSLoadedCostume and NESLoadedCostume ?
svn-id: r17161
2005-03-15 21:48:06 +00:00
Max Horn
deca135252 Use better variable names...
svn-id: r17160
2005-03-15 21:20:44 +00:00
Eugene Sandulenko
ef57db4105 First attempt to draw NES sprites. There are these problems:
o Position is not correct
  o Colors are wrong
  o No animation
  o They're not wiped out correctly, maybe because of first problem

svn-id: r17137
2005-03-14 21:13:35 +00:00
Eugene Sandulenko
654528422d Preliminary support for MM NES.
svn-id: r17133
2005-03-13 23:18:59 +00:00
Travis Howell
c39a92933d Add key to toggle speech/subtitles
svn-id: r17082
2005-03-12 00:47:17 +00:00
Travis Howell
bad34c12cd Add two more VARs for HE89+
Minor cleanup

svn-id: r16977
2005-03-02 23:14:06 +00:00
Travis Howell
36705d4344 Add support for script cycles used by HE90+ games.
svn-id: r16958
2005-02-28 13:23:10 +00:00