diff options
Diffstat (limited to 'engines/pink/objects/actions/action_play_with_sfx.h')
-rw-r--r-- | engines/pink/objects/actions/action_play_with_sfx.h | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/engines/pink/objects/actions/action_play_with_sfx.h b/engines/pink/objects/actions/action_play_with_sfx.h index b558ee1c13..7782e913e2 100644 --- a/engines/pink/objects/actions/action_play_with_sfx.h +++ b/engines/pink/objects/actions/action_play_with_sfx.h @@ -31,26 +31,39 @@ namespace Pink { class ActionSfx; class ActionPlayWithSfx : public ActionPlay { + virtual ~ActionPlayWithSfx(); virtual void deserialize(Archive &archive); virtual void toConsole(); + virtual void update(); + +protected: + virtual void onStart(); private: + void updateSound(); uint32 _isLoop; Common::Array<ActionSfx*> _sfxArray; }; +class Sound; +class GamePage; + class ActionSfx : public Object { public: + virtual ~ActionSfx(); virtual void deserialize(Archive &archive); virtual void toConsole(); + void play(GamePage *page); + uint32 getFrame(); + private: - ActionPlayWithSfx *_action; - Common::String _sfx; + Sound *_sound; + Common::String _sfxName; uint32 _volume; uint32 _frame; }; -} +} // End of namespace Pink #endif |