aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/entity.h
AgeCommit message (Collapse)Author
2013-07-14JANITORIAL: Remove trailing whitespaceSven Hesse
2013-05-31NEVERHOOD: Made multi-line function-line macros saferTorbjörn Andersson
Wrapped the code in the SetUpdateHandler(), SetMessageHandler(), SetSpriteUpdate(), SetFilterX(), SetFilterY() and NextState() macros in "do { ... } while (0)". Otherwise you may fool yourself because in "if (condition) macro();" the "if" will only cover the first statement of the macro. CID 1022340, 1022341, 1022342, 1022343
2013-05-08NEVERHOOD: Fix Klaymen "grow" animation after drinking the potionjohndoe123
- Remove static sprite 0x50C027A8 Scene2803/Scene2803Small because the resource doesn't exist! - Remove some old comments - Fix resource extData handling which fixes some crashes - Enable reusing deleted sound/music slots in SoundMan (was disabled for debugging)
2013-05-08NEVERHOOD: Some cleanup:johndoe123
- Remove _name field from Entity (wasn't really maintained by me and became useless) - Remove obsolete TODOs - Add STICK_LAST_FRAME constant for better readability - Remove commented out callbackList TODOs (these were so far never used with over 90% of the game implemented)
2013-05-08NEVERHOOD: Add Entity::setSoundPan and use it in the DiskplayerScenejohndoe123
2013-05-08NEVERHOOD: Change sound stuff in Module2200johndoe123
- Add Entity::stopSound
2013-05-08NEVERHOOD: Change sound stuff in Module1700johndoe123
- Add Entity::setSoundVolume
2013-05-08NEVERHOOD: Change sound stuff in Module1100johndoe123
- Implement Entity::isSoundPlaying
2013-05-08NEVERHOOD: Change sound playingjohndoe123
Sounds can now be loaded/played by an entity without declaring/initializing a SoundResource which is a little nicer. I implemented this so far for Module1000 only, rest will follow.
2013-05-08NEVERHOOD: Move code from entity.h to new entity.cppjohndoe123
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: Start with Module1100 and add Scene1105johndoe123
2013-05-08NEVERHOOD: Add Scene::setPalette for simpled palette creation and use itjohndoe123
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: Implement Scene1403, Scene1404 and Scene1405 (memory minigame)johndoe123
- Move GameModule::startup call into engine instead of the game module constructor - Reduce debug output
2013-05-08NEVERHOOD: More work on Scene1002, Klayman and the restjohndoe123
- Add "heavy debug" output to Entity (display which update/message handler is called) - Also add more debug output - Error out when a StaticData resource could not be found
2013-05-08NEVERHOOD: Implement game varsjohndoe123
2013-05-08NEVERHOOD: More work on Scene1001 and Klaymanjohndoe123
- Fix a bug in Klayman's walking - The lever can now be used - Other stuff is still missing - Remove entity.cpp since it's not needed
2013-05-08NEVERHOOD: More work on Klayman (still eye cancerous code)johndoe123
- Start to implement KmScene1001 - Implement queryPositionSprite and queryPositionRectList - Implement message list related code (setting and running them) - Access to message params now with accessors (so compatible types can be converted)
2013-05-08NEVERHOOD: More work on Klaymanjohndoe123
- Rename Scene::_playerSprite to _klayman - Send mouse clicks to the scene object (has not effect yet)
2013-05-08NEVERHOOD: Start with the Klayman class (this is quite some horrible code, ↵johndoe123
also, it doesn't work yet and isn't used yet)
2013-05-08NEVERHOOD: More work on Scene1001, implement Class509 (yes, will be renamed ↵johndoe123
later) and AnimResource related stuff
2013-05-08NEVERHOOD: Start with Scene and Sprite classesjohndoe123
2013-05-08NEVERHOOD: Add skeleton for Module1500 (the intro module)johndoe123
2013-05-08NEVERHOOD: Start with Module and GameModule classesjohndoe123
2013-05-08NEVERHOOD: Add morejohndoe123
- SpriteResource and PaletteResource resource classes - Extend BaseSurface to be able to draw SpriteResources onto it - Implement Entity base class (this may need some work concerning the update/message callbacks later since I'm not sure if the way it's done now is portable)