diff options
author | Paul Gilbert | 2015-06-06 21:31:48 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-06-06 21:31:48 -0400 |
commit | 3511f30a2621af4773df5271cdffb6275b9e829e (patch) | |
tree | 7a49bb802aecb9e64a2ba5c30f6314e54ff22f05 /engines/sherlock/talk.h | |
parent | 75610e7119b415779380805912de40101e3be656 (diff) | |
download | scummvm-rg350-3511f30a2621af4773df5271cdffb6275b9e829e.tar.gz scummvm-rg350-3511f30a2621af4773df5271cdffb6275b9e829e.tar.bz2 scummvm-rg350-3511f30a2621af4773df5271cdffb6275b9e829e.zip |
SHERLOCK: Created common base class for Sprite and Object
Diffstat (limited to 'engines/sherlock/talk.h')
-rw-r--r-- | engines/sherlock/talk.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/sherlock/talk.h b/engines/sherlock/talk.h index ccd09aee66..6c33bc72a9 100644 --- a/engines/sherlock/talk.h +++ b/engines/sherlock/talk.h @@ -252,6 +252,11 @@ protected: OpcodeReturn cmdToggleObject(const byte *&str); OpcodeReturn cmdWalkToCAnimation(const byte *&str); OpcodeReturn cmdWalkToCoords(const byte *&str); +protected: + /** + * Change the sequence of the scene background object associated with the current speaker. + */ + virtual void setSequence(int speaker, int sequenceNum = 1) = 0; public: TalkSequence _talkSequenceStack[TALK_SEQUENCE_STACK_SIZE]; bool _talkToAbort; @@ -335,11 +340,6 @@ public: void pushTalkSequence(Object *obj); /** - * Change the sequence of the scene background object associated with the current speaker. - */ - void setSequence(int speaker); - - /** * Returns true if the script stack is empty */ bool isSequencesEmpty() const { return _scriptStack.empty(); } |