aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/klayman.cpp
AgeCommit message (Collapse)Author
2013-05-08NEVERHOOD: Replace most of the literal digits in get/setSubVar with constantsjohndoe123
2013-05-08NEVERHOOD: Use constants for the numbers in get/setGlobalVarjohndoe123
Now the code is much more readable - Still TODO is to do the same with get/setSubVar
2013-05-08NEVERHOOD: Rename stuff in the Scene class and clean up a littlejohndoe123
- Try to stay close to the actual frame rate - Also use the Smacker frame rate when a video is playing to keep videos in sync with the audio
2013-05-08NEVERHOOD: Work on Module2800:johndoe123
- Rename KmScene2803b to KmScene2803Small; Scene2803b to Scene2803Small - Rename lots of stuff
2013-05-08NEVERHOOD: Add clipRects to all Klayman subclassesjohndoe123
- Rename stuff in Module2400 - Move some temp sprites from class scope to local scope in the respective constructors
2013-05-08NEVERHOOD: Implement clipping against multiple clipRects, used only in ↵johndoe123
several scenes for the Klayman sprite. Currently only implemented in KmScene2201 for testing.
2013-05-08NEVERHOOD: More minor Klayman changes:johndoe123
- Normalize the calling order of the Set... macros - Actually use _walkResumeFrameIncr, change stStartWalkingResume
2013-05-08NEVERHOOD: More changes to the Klayman class:johndoe123
- Rename some stuff - Reorder methods (in the Klayman header only until I'm happy with it :)
2013-05-08NEVERHOOD: Renamejohndoe123
- Also fix compilation (oops)
2013-05-08NEVERHOOD: Some more merging and renaming in the Klayman classjohndoe123
2013-05-08NEVERHOOD: Rename handleMessage41D640johndoe123
2013-05-08NEVERHOOD: More Klayman mergingjohndoe123
- Also clean up parameter list of two Klayman subclass constructors and send a message to the parent class instead of operating on the entities inside the Klayman class
2013-05-08NEVERHOOD: Change sound stuff in Klaymanjohndoe123
- Also merge some more code into the Klayman class - Rename hmInsertDiskSide to hmInsertKey (also related code)
2013-05-08NEVERHOOD: Move more into the Klayman base classjohndoe123
- Fix header from previous commit
2013-05-08NEVERHOOD: Move Klayman teleporter appear/disappear animation code from the ↵johndoe123
several subclasses to the base Klayman class; the code was equal except for the animation hashes
2013-05-08NEVERHOOD: Rename more Klayman stuff (not much left :)johndoe123
2013-05-08NEVERHOOD: Fix resource file reading by introducing ↵johndoe123
SafeMutexedSeekableSubReadStream which locks a mutex during reads and also lock the same mutex in BlbArchive::load; loading resources while music is playing shouldn't mess up the file position now - Fix loading of non-existent resources (not elegant and not checked everywhere yet, the resource system is subject to a minor rewrite anyway) - Rename more Klayman stuff
2013-05-08NEVERHOOD: Rename many Klayman functions/variablesjohndoe123
2013-05-08NEVERHOOD: Some work on the Klayman "idle" code (when the user doesn't do ↵johndoe123
something for a certain time) - Fix startIdleAnimation and the Klayman update code which calls the idle code - Rename related variables/methods
2013-05-08NEVERHOOD: Add most SoundMan remaining callsjohndoe123
Except for those which need a sound hash array (later)
2013-05-08NEVERHOOD: Implement the actual audio codejohndoe123
Sounds and music play now in some scenes (I didn't change the comments to code in all modules yet) - Fix calcHash to ignore non-alphanumeric characters, this fixes at least one animation glitch (when inserting tapes into the player) - Move SoundResource to sound.cpp
2013-05-08NEVERHOOD: More work on the SoundManjohndoe123
- Also changed all sound related function calls which are still TODO to the new names
2013-05-08NEVERHOOD: Implement Scene2403johndoe123
2013-05-08NEVERHOOD: Implement Scene2406johndoe123
2013-05-08NEVERHOOD: Implement Scene2402johndoe123
2013-05-08NEVERHOOD: Start with Module2400johndoe123
- Implement Scene2401
2013-05-08NEVERHOOD: Start with Module2500johndoe123
- Implement Scene2501 - Add Scene::removeSprite
2013-05-08NEVERHOOD: Implement Scene2803johndoe123
- Also add "empty" constructor to DirtyBackground (used by that scene)
2013-05-08NEVERHOOD: Implement Scene2812johndoe123
2013-05-08NEVERHOOD: Implement Scene2810johndoe123
- Also add globalvars.txt, a (currently almost empty) list of global game variables with descriptions
2013-05-08NEVERHOOD: Implement Scene2809johndoe123
- Fix some setMessageList parameters - Add scene 10 in Module2800
2013-05-08NEVERHOOD: Implement Scene2806 (Class469 TODO)johndoe123
2013-05-08NEVERHOOD: Implement Scene2803bjohndoe123
- Also some more Klayman stuff used by that scene
2013-05-08NEVERHOOD: Implement Scene2805johndoe123
2013-05-08NEVERHOOD: Rename SetSpriteCallback to SetSpriteUpdatejohndoe123
- Started replace message numbers with constants - Add NRect::contains - Some cleanup
2013-05-08NEVERHOOD: Start with Module2800 and add Scene2801johndoe123
2013-05-08NEVERHOOD: More renamingjohndoe123
2013-05-08NEVERHOOD: More renaming (mostly in Klayman and AnimatedSprite)johndoe123
2013-05-08NEVERHOOD: Major renaming:johndoe123
- Give better names to animation callback functions/vars - Give better names to animation functions (previously known as subXXXX - not completed yet) - Add dumpAllResources (which is a lie, since it only dumps animations for now) - More renaming to come
2013-05-08NEVERHOOD: Add Module2100 and Scene2101 (not complete yet)johndoe123
2013-05-08NEVERHOOD: Add Module1900 and Scene1901, Scene1907johndoe123
(Scene1908 is actually only used in another module...)
2013-05-08NEVERHOOD: Add Module1600 and Scene1608 (stuff will be renamed later)johndoe123
2013-05-08NEVERHOOD: Add Scene1109johndoe123
- Also fix some bugs regarding a missing parameter to setMessageList in various scenes
2013-05-08NEVERHOOD: Replace InsertKlayman macros with template functions (still weird ↵johndoe123
but nicer)
2013-05-08NEVERHOOD: Remove unused resource preloading stuff (probably resource ↵johndoe123
preloading is not needed since the original game ran off slow double/quad-speed cd drives and preloading reduced stuttering while playing back then) - Add Klayman animation speedup
2013-05-08NEVERHOOD: Use InsertKlaymanjohndoe123
2013-05-08NEVERHOOD: Multiple changes to make the game logic code cleaner (hopefully :)johndoe123
- Introduce Scene::insertStaticSprite to create static sprites instead of the old "addSprite(new StaticSprite" (not used everywhere yet) - Introduce macro InsertKlayman to create the Klayman object - Change sendMessage semantics from "receiver->sendMessage(num,arg,sender)" to "sendMessage(receiver,num,arg)", the sender is always the sending object ("this") - Similar changes using macros will follow - And fixed a bug in the elevator
2013-05-08NEVERHOOD: Add Scene1308 (renaming of stuff todo)johndoe123
2013-05-08NEVERHOOD: Add Scene1306johndoe123
2013-05-08NEVERHOOD: Add Scene1305johndoe123