diff options
author | Julien Templier | 2010-10-21 23:41:22 +0000 |
---|---|---|
committer | Julien Templier | 2010-10-21 23:41:22 +0000 |
commit | def40a625a0767ddf30c42f03aba44ec58ea5a07 (patch) | |
tree | 486af642d0102a0c1e79f9ab52450aa931d38414 /engines/lastexpress/game | |
parent | 08f905fe564e808e660224250f4a770a41b0b5d8 (diff) | |
download | scummvm-rg350-def40a625a0767ddf30c42f03aba44ec58ea5a07.tar.gz scummvm-rg350-def40a625a0767ddf30c42f03aba44ec58ea5a07.tar.bz2 scummvm-rg350-def40a625a0767ddf30c42f03aba44ec58ea5a07.zip |
LASTEXPRESS: Implement remaining AI logic functions for Kahina and Kronos
svn-id: r53684
Diffstat (limited to 'engines/lastexpress/game')
-rw-r--r-- | engines/lastexpress/game/sound.cpp | 9 | ||||
-rw-r--r-- | engines/lastexpress/game/sound.h | 8 |
2 files changed, 16 insertions, 1 deletions
diff --git a/engines/lastexpress/game/sound.cpp b/engines/lastexpress/game/sound.cpp index 348a7f6937..3b47b6a405 100644 --- a/engines/lastexpress/game/sound.cpp +++ b/engines/lastexpress/game/sound.cpp @@ -450,6 +450,15 @@ void SoundManager::processEntries() { processEntry(kSoundType2); } +uint32 SoundManager::getEntryTime(EntityIndex index) { + SoundEntry *entry = getEntry(index); + + if (!entry) + return 0; + + return entry->time; +} + ////////////////////////////////////////////////////////////////////////// // Misc ////////////////////////////////////////////////////////////////////////// diff --git a/engines/lastexpress/game/sound.h b/engines/lastexpress/game/sound.h index 85dfcc2e66..517aa1b31c 100644 --- a/engines/lastexpress/game/sound.h +++ b/engines/lastexpress/game/sound.h @@ -161,6 +161,7 @@ public: void processEntries(); void removeFromQueue(Common::String filename); void removeFromQueue(EntityIndex entity); + uint32 getEntryTime(EntityIndex index); // Misc void unknownFunction4(); @@ -242,7 +243,7 @@ private: //int fileData; //int field_18; //int field_1C; - //int field_20; + uint32 time; //int field_24; //int field_28; Common::SeekableReadStream *stream; // int @@ -262,8 +263,13 @@ private: bool isStreamed; // TEMPORARY SoundEntry() { + status.status = 0; type = kSoundTypeNone; + + time = 0; + stream = NULL; + field_3C = 0; field_40 = 0; entity = kEntityPlayer; |