diff options
author | Paul Gilbert | 2016-08-25 22:13:04 -0400 |
---|---|---|
committer | Paul Gilbert | 2016-08-25 22:13:04 -0400 |
commit | 9a71c9166b1ef8c7d0e57cfdfac6eb25f5332c69 (patch) | |
tree | 60bea0262805a98f2cdaf5ea0a34f4e9e198e72e /engines/titanic/sound | |
parent | 1f0b9cb68d02d956ec745bef16f0dbddaa743bec (diff) | |
download | scummvm-rg350-9a71c9166b1ef8c7d0e57cfdfac6eb25f5332c69.tar.gz scummvm-rg350-9a71c9166b1ef8c7d0e57cfdfac6eb25f5332c69.tar.bz2 scummvm-rg350-9a71c9166b1ef8c7d0e57cfdfac6eb25f5332c69.zip |
TITANIC: Implemented more game classes and music widget classes
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r-- | engines/titanic/sound/music_room.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/titanic/sound/music_room.h b/engines/titanic/sound/music_room.h index 15363ef392..5f0b271ab3 100644 --- a/engines/titanic/sound/music_room.h +++ b/engines/titanic/sound/music_room.h @@ -31,6 +31,8 @@ namespace Titanic { class CGameManager; class CSound; +enum MusicControlArea { BELLS = 0, SNAKE = 1, PIANO = 2, BASS = 3 }; + class CMusicRoom { struct Entry { uint _val1; @@ -62,11 +64,11 @@ public: */ void destroyMusicHandler(); - void setItem1(int index, int val) { _items[index]._val1 = val; } - void setItem2(int index, int val) { _items[index]._val2 = val; } - void setItem3(int index, int val) { _items[index]._val3 = val; } - void setItem4(int index, int val) { _items[index]._val4 = val; } - void setItem5(int index, int val) { _items[index]._val5 = val; } + void setItem1(MusicControlArea index, int val) { _items[index]._val1 = val; } + void setItem2(MusicControlArea index, int val) { _items[index]._val2 = val; } + void setItem3(MusicControlArea index, int val) { _items[index]._val3 = val; } + void setItem4(MusicControlArea index, int val) { _items[index]._val4 = val; } + void setItem5(MusicControlArea index, int val) { _items[index]._val5 = val; } /** * Start playing a given music number |