aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_card.h
diff options
context:
space:
mode:
authorBastien Bouclet2016-08-04 20:26:26 +0200
committerEugene Sandulenko2017-07-03 08:50:10 +0200
commit1b062d1e39988388468bb13af97276d5674bbcbe (patch)
tree7e329f01236b3c46cda387b5f8b14bccd301d4ca /engines/mohawk/riven_card.h
parent2fbe284a311f2eef62126115ddd6d2bb483b3c4b (diff)
downloadscummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.gz
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.tar.bz2
scummvm-rg350-1b062d1e39988388468bb13af97276d5674bbcbe.zip
MOHAWK: Move the sound lists to RivenCard
Diffstat (limited to 'engines/mohawk/riven_card.h')
-rw-r--r--engines/mohawk/riven_card.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/riven_card.h b/engines/mohawk/riven_card.h
index 86e872497f..b83f330c79 100644
--- a/engines/mohawk/riven_card.h
+++ b/engines/mohawk/riven_card.h
@@ -24,6 +24,7 @@
#define RIVEN_CARD_H
#include "mohawk/riven_scripts.h"
+#include "mohawk/riven_sound.h"
#include "common/rect.h"
#include "common/system.h"
@@ -67,9 +68,16 @@ public:
/** Draw one of the card's pictures synchronously or asynchronously */
void drawPicture(uint16 index, bool queue = false);
+ /** Play the card's ambient sounds with the specified index */
+ void playSound(uint16 index, bool queue = false);
+
+ /** Get the card's sound description with the specified index */
+ SLSTRecord getSound(uint16 index) const;
+
private:
void loadCardResource(uint16 id);
void loadCardPictureList(uint16 id);
+ void loadCardSoundList(uint16 id);
void initializeZipMode();
void defaultLoadScript();
@@ -84,6 +92,7 @@ private:
// Resource lists
Common::Array<Picture> _pictureList;
+ Common::Array<SLSTRecord> _soundList;
};
} // End of namespace Mohawk