aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/livingbooks.h
diff options
context:
space:
mode:
authorAlyssa Milburn2011-03-29 16:28:24 +0200
committerAlyssa Milburn2011-03-29 16:28:24 +0200
commitbcc0adb8fa213210147c3b36e5283fe8f752d55c (patch)
tree18653aa2103a0038cf552ae44d96851c32875b92 /engines/mohawk/livingbooks.h
parentbd526aac1dc64ead135b42b08e46566636ba5a90 (diff)
downloadscummvm-rg350-bcc0adb8fa213210147c3b36e5283fe8f752d55c.tar.gz
scummvm-rg350-bcc0adb8fa213210147c3b36e5283fe8f752d55c.tar.bz2
scummvm-rg350-bcc0adb8fa213210147c3b36e5283fe8f752d55c.zip
MOHAWK: Handle LB item sound priorities.
Diffstat (limited to 'engines/mohawk/livingbooks.h')
-rw-r--r--engines/mohawk/livingbooks.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/mohawk/livingbooks.h b/engines/mohawk/livingbooks.h
index 3cd9142793..74bf520451 100644
--- a/engines/mohawk/livingbooks.h
+++ b/engines/mohawk/livingbooks.h
@@ -365,6 +365,7 @@ public:
virtual void notify(uint16 data, uint16 from); // 0x1A
uint16 getId() { return _itemId; }
+ uint16 getSoundPriority() { return _soundMode; }
protected:
MohawkEngine_LivingBooks *_vm;
@@ -598,6 +599,9 @@ public:
void notifyAll(uint16 data, uint16 from);
void queueDelayedEvent(DelayedEvent event);
+ bool playSound(LBItem *source, uint16 resourceId);
+ void lockSound(LBItem *owner, bool lock);
+
bool isBigEndian() const { return getGameType() != GType_LIVINGBOOKSV1 || getPlatform() == Common::kPlatformMacintosh; }
bool isPreMohawk() const;
@@ -632,6 +636,11 @@ private:
bool loadPage(LBMode mode, uint page, uint subpage);
void updatePage();
+ uint16 _lastSoundOwner, _lastSoundId;
+ uint16 _lastSoundPriority;
+ uint16 _soundLockOwner;
+ uint16 _maxSoundPriority;
+
uint16 getResourceVersion();
void loadBITL(uint16 resourceId);
void loadSHP(uint16 resourceId);