40 kTBExit = 0, kTBMaze, kTBNoPoint, kTBNoun, kTBVerb,
41 kTBEh, kTBUnusual, kTBHave, kTBNoUse, kTBDontHave,
42 kTBNeed, kTBOk, kCmtAny1, kCmtAny2, kCmtAny3,
43 kCmtClose, kTBIntro, kTBOutro, kTBUnusual_1d, kCmtAny4,
44 kCmtAny5, kTBExit_1d, kTBEh_1d, kTBEh_2d, kTBNoUse_2d
53 uint16 _textDataNoCarryIndex;
56 uint16 _textDataWrongIndex;
57 uint16 _textDataDoneIndex;
83 bool isWordPresent(
char **wordArr)
const;
85 uint16 getCmdDefaultVerbIdx(
const uint16 index)
const;
88 void command(
const char *format, ...);
89 void resetCommandLine();
98 const char *useBG(
const char *name);
100 virtual void lineHandler() = 0;
101 virtual void showInventory()
const = 0;
102 virtual void takeObject(
Object *obj) = 0;
111 uint16 _backgroundObjectsSize;
119 const char *findNoun()
const;
120 const char *findVerb()
const;
123 void showDosInventory()
const;
125 void sayInventory(
const char *intro,
const char *outro,
int nounIndex2)
const;
127 void endGamePrompt();
129 bool _checkDoubleF1Fl;
132 char _ringBuffer[32];
135 static const int kBlinksPerSec = 2;
143 void lineHandler()
override;
144 void showInventory()
const override;
145 void takeObject(
Object *obj)
override;
148 virtual void dropObject(
Object *obj);
150 const char *findNextNoun(
const char *noun)
const;
151 bool isBackgroundWord_v1(
const char *noun,
const char *verb, ObjectList obj)
const;
152 bool isCatchallVerb_v1(
bool testNounFl,
const char *noun,
const char *verb, ObjectList obj)
const;
153 bool isGenericVerb_v1(
const char *word,
Object *obj);
154 bool isNear_v1(
const char *verb,
const char *noun,
Object *obj,
char *comment)
const;
155 bool isObjectVerb_v1(
const char *word,
Object *obj);
163 void lineHandler()
override;
166 bool isBackgroundWord_v2(
const char *noun,
const char *verb, ObjectList obj)
const;
167 bool isCatchallVerb_v2(
bool testNounFl,
const char *noun,
const char *verb, ObjectList obj)
const;
168 bool isGenericVerb_v2(
const char *word,
Object *obj);
169 bool isObjectVerb_v2(
const char *word,
Object *obj);
177 void lineHandler()
override;
179 void dropObject(
Object *obj)
override;
180 bool isBackgroundWord_v3(ObjectList obj)
const;
181 bool isCatchallVerb_v3(ObjectList obj)
const;
182 bool isGenericVerb_v3(
Object *obj,
char *comment);
183 bool isNear_v3(
Object *obj,
const char *verb,
char *comment)
const;
184 bool isObjectVerb_v3(
Object *obj,
char *comment);
185 void takeObject(
Object *obj)
override;
193 void showInventory()
const override;
195 void lineHandler()
override;
200 #endif //HUGO_PARSER_H
Definition: algorithm.h:29