Commit Graph

204 Commits

Author SHA1 Message Date
johndoe123
b320c9f5a0 NEVERHOOD: Work on Module1600:
- Rename stuff (also in related files)
2013-05-08 20:43:47 +02:00
johndoe123
cb5ca83578 NEVERHOOD: Rename more stuff in Module1400; also fix some bugs
- Update globalvars.txt
2013-05-08 20:43:47 +02:00
johndoe123
39d1982e47 NEVERHOOD: Work on Module1400:
- Rename stuff
- Fix some bugs (mistyped message numbers...)
- More to come
2013-05-08 20:43:47 +02:00
johndoe123
eefa175a2f NEVERHOOD: Update todo.txt 2013-05-08 20:43:47 +02:00
johndoe123
106ec42124 NEVERHOOD: Work on Module1300:
- Remove Class595, only used for setting the surface priority via a message
- Rename stuff and fix some errors
2013-05-08 20:43:47 +02:00
johndoe123
7b0b3000a7 NEVERHOOD: Rename stuff in Module1200
- Remove unused countdowns/code in AsScene1201Creature
- Fix AudioResourceMan::isSoundPlaying
2013-05-08 20:43:47 +02:00
johndoe123
f77b12cf96 NEVERHOOD: Rename stuff in Module1200
- Fix Scene1201 (tnt man, match)
2013-05-08 20:43:47 +02:00
johndoe123
5e08ab3e3f NEVERHOOD: Rename Class426 to SsCommonPressButton 2013-05-08 20:43:47 +02:00
johndoe123
81667d492a NEVERHOOD: Remove SsScene1002LadderArch and Class599 and turn them into static sprites; the classes were only used to set the sprite surface priority with a message, which is now handled in the scene 2013-05-08 20:43:46 +02:00
johndoe123
c88fdc34dd NEVERHOOD: Rename Class152 to StaticScene 2013-05-08 20:43:46 +02:00
johndoe123
bb4bda7404 NEVERHOOD: More minor Klayman changes:
- Normalize the calling order of the Set... macros
- Actually use _walkResumeFrameIncr, change stStartWalkingResume
2013-05-08 20:43:46 +02:00
johndoe123
debc7e953d NEVERHOOD: More changes to the Klayman class:
- Rename some stuff
- Reorder methods (in the Klayman header only until I'm happy with it :)
2013-05-08 20:43:46 +02:00
johndoe123
3ef691f1af NEVERHOOD: Rename
- Also fix compilation (oops)
2013-05-08 20:43:46 +02:00
johndoe123
4fef1ac9f2 NEVERHOOD: Some more merging and renaming in the Klayman class 2013-05-08 20:43:46 +02:00
johndoe123
22cfd04b12 NEVERHOOD: Rename handleMessage41D640 2013-05-08 20:43:46 +02:00
johndoe123
7e4faf3505 NEVERHOOD: More Klayman merging
- 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-08 20:43:46 +02:00
johndoe123
e97bd30682 NEVERHOOD: Change sound stuff in Klayman
- Also merge some more code into the Klayman class
- Rename hmInsertDiskSide to hmInsertKey (also related code)
2013-05-08 20:43:46 +02:00
johndoe123
acdc0256bb NEVERHOOD: Change sound stuff in DiskplayerScene 2013-05-08 20:43:45 +02:00
johndoe123
1b3a686cac NEVERHOOD: Fix AsScene3011Symbol 2013-05-08 20:43:45 +02:00
johndoe123
45da15adce NEVERHOOD: Change sound stuff in Module3000 (dirty, TODO) 2013-05-08 20:43:45 +02:00
johndoe123
eca881bd3e NEVERHOOD: Change sound stuff in Module2800 2013-05-08 20:43:45 +02:00
johndoe123
73f4e4bcac NEVERHOOD: Change sound stuff in Module2700 2013-05-08 20:43:45 +02:00
johndoe123
26188a3a69 NEVERHOOD: Change sound stuff in Module2600 2013-05-08 20:43:45 +02:00
johndoe123
fb9d9c30e6 NEVERHOOD: Change sound stuff in Module2500 2013-05-08 20:43:45 +02:00
johndoe123
0c5a5b3c62 NEVERHOOD: Change sound stuff in Module2400 2013-05-08 20:43:45 +02:00
johndoe123
3651d982c4 NEVERHOOD: Change sound stuff in Module2200
- Add Entity::stopSound
2013-05-08 20:43:45 +02:00
johndoe123
78df19c648 NEVERHOOD: Change sound stuff in Module2100 2013-05-08 20:43:45 +02:00
johndoe123
a8dda6c5b6 NEVERHOOD: Change sound stuff in Module1900 2013-05-08 20:43:44 +02:00
johndoe123
0a1a228a88 NEVERHOOD: Change sound stuff in Module1700
- Add Entity::setSoundVolume
2013-05-08 20:43:44 +02:00
johndoe123
0c272631df NEVERHOOD: Change sound stuff in Module1600 2013-05-08 20:43:44 +02:00
johndoe123
2df0a0a2e1 NEVERHOOD: Change sound stuff in Module1500 2013-05-08 20:43:44 +02:00
johndoe123
b119efd5ed NEVERHOOD: Change sound stuff in Module1400 2013-05-08 20:43:44 +02:00
johndoe123
5ab4eb6555 NEVERHOOD: Change sound stuff in Module1300
- Also fix a very stupid bug in AsScene1307Key which messed up the key moving animation
2013-05-08 20:43:44 +02:00
johndoe123
fc359abd08 NEVERHOOD: Change sound stuff in Module1200 2013-05-08 20:43:44 +02:00
johndoe123
7adc1d312e NEVERHOOD: Change sound stuff in Module1100
- Implement Entity::isSoundPlaying
2013-05-08 20:43:44 +02:00
johndoe123
0f04a01338 NEVERHOOD: Change sound playing
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-08 20:43:44 +02:00
johndoe123
6160ee3cf2 NEVERHOOD: Move code from entity.h to new entity.cpp 2013-05-08 20:43:44 +02:00
johndoe123
e1943c1e2b NEVERHOOD: Move more into the Klayman base class
- Fix header from previous commit
2013-05-08 20:43:44 +02:00
johndoe123
d1927ef8e6 NEVERHOOD: Move Klayman teleporter appear/disappear animation code from the several subclasses to the base Klayman class; the code was equal except for the animation hashes 2013-05-08 20:43:43 +02:00
johndoe123
cce19001fd NEVERHOOD: Rename more Klayman stuff (not much left :) 2013-05-08 20:43:43 +02:00
johndoe123
a5986fd722 NEVERHOOD: Fix resource file reading by introducing 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-08 20:43:43 +02:00
johndoe123
8bdddfdb02 NEVERHOOD: Rename many Klayman functions/variables 2013-05-08 20:43:43 +02:00
johndoe123
21d1372d7e NEVERHOOD: Some work on the Klayman "idle" code (when the user doesn't do something for a certain time)
- Fix startIdleAnimation and the Klayman update code which calls the idle code
- Rename related variables/methods
2013-05-08 20:43:43 +02:00
johndoe123
2ba49676ea NEVERHOOD: Add destructor to AsScene2804BeamCoil 2013-05-08 20:43:43 +02:00
johndoe123
ba991fe702 NEVERHOOD: Fix addSound in AsScene2609Water and add a destructor 2013-05-08 20:43:42 +02:00
johndoe123
a2bc192912 NEVERHOOD: Add sound lists to all modules which have them 2013-05-08 20:43:42 +02:00
johndoe123
f5a8c9d90d NEVERHOOD: Add most SoundMan remaining calls
Except for those which need a sound hash array (later)
2013-05-08 20:43:42 +02:00
johndoe123
fc0e40db30 NEVERHOOD: Implement the actual audio code
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-08 20:43:42 +02:00
johndoe123
0bb70c39f0 NEVERHOOD: More work on the SoundMan
- Also changed all sound related function calls which are still TODO to the new names
2013-05-08 20:43:42 +02:00
johndoe123
65afa25c9f NEVERHOOD: Implement the SoundMan; no sound is played yet since the important code doesn't exist yet 2013-05-08 20:43:42 +02:00