diff options
author | Gregory Montoir | 2003-10-30 10:56:38 +0000 |
---|---|---|
committer | Gregory Montoir | 2003-10-30 10:56:38 +0000 |
commit | d8ffcaf34009343213ad0d6765024b0b09055b26 (patch) | |
tree | 633fe5cbcbd316c76844712fb61f4d879b2b25f4 /queen/input.h | |
parent | 28823a2b2af82ea7dd378cdf2f7925df8f03a2e7 (diff) | |
download | scummvm-rg350-d8ffcaf34009343213ad0d6765024b0b09055b26.tar.gz scummvm-rg350-d8ffcaf34009343213ad0d6765024b0b09055b26.tar.bz2 scummvm-rg350-d8ffcaf34009343213ad0d6765024b0b09055b26.zip |
new Verb class
svn-id: r11010
Diffstat (limited to 'queen/input.h')
-rw-r--r-- | queen/input.h | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/queen/input.h b/queen/input.h index fd97df91b3..6c9d15b1bc 100644 --- a/queen/input.h +++ b/queen/input.h @@ -23,6 +23,7 @@ #define INPUT_H #include "queen/defs.h" +#include "queen/verb.h" #include "common/scummsys.h" class OSystem; @@ -56,32 +57,7 @@ class Input { void checkKeys(); //! use instead of KEYVERB=0 - void clearKeyVerb() { _keyVerb = VERB_NONE; } - - //! _keyVerb is open/close/move/give/look at/pick up/talk to - bool verbIsPanelCommand() { - return - _keyVerb >= VERB_PANEL_COMMAND_FIRST && - _keyVerb <= VERB_PANEL_COMMAND_LAST; - } - - //! return _keyVerb if isPanelCommand() is true, otherwise VERB_NONE - Verb verbPanelCommand(); - - //! If _keyVerb is VERB_USE_JOURNAL - bool verbUseJournal() { return _keyVerb == VERB_USE_JOURNAL; } - - //! If _keyVerb is VERB_KEY_1 to VERB_KEY_4 - bool verbIsDigit() { - return - _keyVerb >= VERB_DIGIT_FIRST && - _keyVerb <= VERB_DIGIT_LAST; - } - - //! Returns 1-4 if keyDigit() is true, otherwise -1 - int verbDigit(); - - bool verbSkipText() { return _keyVerb == VERB_SKIP_TEXT; } + void clearKeyVerb() { _keyVerb = Verb(VERB_NONE); } void canQuit(bool cq) { _canQuit = cq; } |