aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/parser.h
diff options
context:
space:
mode:
authorStrangerke2013-09-24 07:31:43 +0200
committerStrangerke2013-09-24 07:31:43 +0200
commitf4e37939c7cb36041b610d8a8d42576959b94ed9 (patch)
treec4a03defd9e34dfa97b0f9948b78fc2416a9c743 /engines/avalanche/parser.h
parentcbe9c151aa305e929527a1dd81d34e7c818ae128 (diff)
downloadscummvm-rg350-f4e37939c7cb36041b610d8a8d42576959b94ed9.tar.gz
scummvm-rg350-f4e37939c7cb36041b610d8a8d42576959b94ed9.tar.bz2
scummvm-rg350-f4e37939c7cb36041b610d8a8d42576959b94ed9.zip
AVALANCHE: Move 2 enums out of Avalot classes, set private some parser variables
Diffstat (limited to 'engines/avalanche/parser.h')
-rw-r--r--engines/avalanche/parser.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/avalanche/parser.h b/engines/avalanche/parser.h
index 8f49a48e74..30b5929fb5 100644
--- a/engines/avalanche/parser.h
+++ b/engines/avalanche/parser.h
@@ -81,10 +81,6 @@ public:
bool _cursorState;
byte _wearing; // what you're wearing
- byte _sworeNum; // number of times you've sworn
- byte _alcoholLevel; // Your blood alcohol level.
- byte _playedNim; // How many times you've played Nim.
- bool _boughtOnion; // Have you bought an onion yet?
Parser(AvalancheEngine *vm);
@@ -104,6 +100,7 @@ public:
void tryDropdown(); // This asks the parsekey proc in Dropdown if it knows it.
int16 getPos(const Common::String &crit, const Common::String &src); // Returns the index of the first appearance of crit in src.
+ void resetVariables();
void synchronize(Common::Serializer &sz);
private:
@@ -116,6 +113,10 @@ private:
Common::String _thats;
byte _thing2;
+ byte _sworeNum; // number of times you've sworn
+ byte _alcoholLevel; // Your blood alcohol level.
+ byte _playedNim; // How many times you've played Nim.
+ bool _boughtOnion; // Have you bought an onion yet?
byte wordNum(Common::String word);
void replace(Common::String oldChars, byte newChar);