Commit Graph

431 Commits

Author SHA1 Message Date
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
43aab9eabb Cleanup
svn-id: r17615
2005-04-16 10:26:49 +00:00
Max Horn
3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +00:00
Travis Howell
840a7ee846 Add correct fix for bug #556496
svn-id: r17406
2005-04-06 02:11:07 +00:00
Travis Howell
21c2c60343 setCameraAt call not required, doesn't match original.
svn-id: r17405
2005-04-06 00:51:03 +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
Travis Howell
2f2ca8ac21 HE80+ reports whole _classData value of object, if no args are given.
Fixes exit arrows in later HE games.

svn-id: r17271
2005-03-28 10:14:08 +00:00
Eugene Sandulenko
154c4af8dc Mass-renamed all variables of Actor object according to our current code
formatting standards. Earlier we had half of vars named with leading
underscore and half without it.

Now code in actor.cpp is considerably more readable.

svn-id: r17068
2005-03-11 01:10:06 +00:00
Travis Howell
8cc18e6797 Minor cleanup
svn-id: r17025
2005-03-07 06:37:56 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Travis Howell
9e4f76b180 Off by one
svn-id: r16127
2004-12-19 09:27:08 +00:00
Max Horn
90e3fa96a3 Make Array stuff part of the V6 engine class (note: it's a bit confusing to have two different ArrayHeader structs, maybe we should rename them?)
svn-id: r15909
2004-11-27 13:13:41 +00:00
Torbjörn Andersson
5f7f3dc0d2 Whitespace
svn-id: r15647
2004-10-22 10:25:56 +00:00
Chris Apers
1ac29aae1e Help PalmOS (and more ?) to save memory
svn-id: r15611
2004-10-19 12:30:42 +00:00
Travis Howell
d42f98d0c4 Add missing case for HE 90+
Always clear complete local script vars.

svn-id: r15564
2004-10-16 05:10:15 +00:00
Travis Howell
3539b6ad95 HE 60 specific
svn-id: r15539
2004-10-13 07:59:51 +00:00
Travis Howell
8df034b6ac Add some missing code for HE100.
Cleanup

svn-id: r15494
2004-10-10 01:52:35 +00:00
Travis Howell
970a782edf Small correction
Ensure object exists, before pushing data.

svn-id: r15463
2004-10-08 06:52:08 +00:00
Travis Howell
db63483001 Add missing roomOps case for HE games.
svn-id: r15404
2004-10-04 04:04:37 +00:00
Travis Howell
d0e5fe1ded Should only copy data, not tag/size.
svn-id: r15343
2004-09-29 08:40:15 +00:00
Travis Howell
bc9ac3ea7f Leave disabled
svn-id: r15341
2004-09-29 00:28:35 +00:00
Max Horn
6a50ba2308 Changed more of the actor class members to match our coding guidelines (in the future, when adding new member vars here, please always use our conventions, i.e. prefix them with _ and use CamelBackStyle
svn-id: r15331
2004-09-28 19:28:59 +00:00
Max Horn
fe12bbe4f5 Seems the difference between o6_kernelSetFunctions case 16 and 17 is whether the text shall be centered or not. Helps Asteroid Lander in The Dig
svn-id: r15328
2004-09-28 17:35:35 +00:00
Max Horn
cc7ca9ce4b some more pointless cleanup / moving around of stuff :-)
svn-id: r15284
2004-09-26 07:30:29 +00:00
Gregory Montoir
9f97086b2f match TheDig and PuttMoon disasm, maybe this will fix fbear crash ?
svn-id: r15245
2004-09-23 19:49:59 +00:00
Max Horn
2f9ea12ddd cleanup
svn-id: r15224
2004-09-21 13:54:30 +00:00
Eugene Sandulenko
64043ff1fc Removed some not necessary #defines which could (and did) lead to program
logic misinterpretation. I assume these were added for readability, but
 (a) names suggestet that they're class variables but they didn't
 (b) their use wasn't consistent, i.e. there were places where variables were
     used directly, not by means of the macros
 (c) they didn't save that much space because they are used in few places.

svn-id: r15179
2004-09-19 00:15:17 +00:00
Max Horn
768133d6e6 Rename some member vars to avoid _ followed by an uppercase letter. More of those are left in the code, though (and I am not really sure whether we want to change that, so far we had no problems caused by this)
svn-id: r15175
2004-09-18 22:42:45 +00:00
Max Horn
3552024aa9 Added ScummEngine::printString() convenience method; changed enqueueText to call addMessageToStack
svn-id: r15170
2004-09-18 20:50:15 +00:00
Travis Howell
2ac60430fc A few more corrections, fixes freddi2 crash.
svn-id: r15142
2004-09-16 23:34:26 +00:00
Travis Howell
cf71760391 No longer required.
svn-id: r15141
2004-09-16 14:31:16 +00:00
Travis Howell
0a320ac7af Correct array size read
svn-id: r15140
2004-09-16 13:51:03 +00:00
Travis Howell
31772ea47d Ooops
svn-id: r15139
2004-09-16 12:54:32 +00:00
Travis Howell
49cd965411 Correction to pickVarRandom
Add HE80+ version too.

svn-id: r15138
2004-09-16 12:30:54 +00:00
Travis Howell
8227fcddf4 Should be reading array id resource.
svn-id: r14962
2004-09-08 12:14:56 +00:00
Travis Howell
6b09826b33 Increase actor.sound to 32 for HE 80+ games.
Add some more HE vars.
More adjustments for copying script strings in HE games.

svn-id: r14903
2004-09-05 09:36:51 +00:00
Travis Howell
255736dfb7 Complete actor clipping override code for HE games.
Add akos speech queue for HE games
Minor cleanup

svn-id: r14883
2004-09-04 08:13:48 +00:00
Travis Howell
2810a06581 HE specific
svn-id: r14857
2004-09-01 10:39:43 +00:00
Travis Howell
cbf5a60bab Add a few akos codes
Give unknown akos codes better names
Rename actor variable
Remove hack (Use multi-version flag instead)
Another sound correction for HE games.

svn-id: r14827
2004-08-29 11:27:16 +00:00
Max Horn
4fea28887e cleanup
svn-id: r14818
2004-08-28 14:48:51 +00:00
Travis Howell
dc7c03029d Update HE games
Update HE game issues/todo
Disable opcode E4 (Specific to fbear and has no benefit so far)

svn-id: r14802
2004-08-28 04:02:49 +00:00
Travis Howell
b1d8b144ba More code/stubs for HE 7.2 games
Add another temp hack
Add id for water, uses more actors
Another small correction to music playback for HE 7.2 games

svn-id: r14764
2004-08-26 08:47:07 +00:00
Eugene Sandulenko
649e9b71a5 HE 7.2 correction to o6_pickVarRandom
svn-id: r14733
2004-08-24 16:30:20 +00:00
Travis Howell
f16065d86d Remove some old/duplicate code.
Add a few more functions/stubs for HE 7.2
Moved HE 7.2 o_resourceRoutine() specifics.

svn-id: r14727
2004-08-24 11:17:28 +00:00
Travis Howell
07eb3f50f9 Correct bug in array loading from index.
A few changes/corrections for HE 7.2

svn-id: r14724
2004-08-24 05:04:14 +00:00
Travis Howell
6d62e7ec66 Another stub
svn-id: r14720
2004-08-23 14:11:53 +00:00
Travis Howell
25ccf3a0ee Another He 7.2 function
svn-id: r14719
2004-08-23 14:03:54 +00:00
Travis Howell
bbc75e4220 Add He 7.2 class
svn-id: r14709
2004-08-23 10:34:50 +00:00
Max Horn
b20187a0e9 Cursor code cleanup
svn-id: r14690
2004-08-22 23:38:00 +00:00