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, ...);
96 const char *useBG(
const char *name);
98 virtual void lineHandler() = 0;
99 virtual void showInventory()
const = 0;
100 virtual void takeObject(
Object *obj) = 0;
109 uint16 _backgroundObjectsSize;
117 const char *findNoun()
const;
118 const char *findVerb()
const;
121 void showDosInventory()
const;
123 bool _checkDoubleF1Fl;
126 char _ringBuffer[32];
129 static const int kBlinksPerSec = 2;
137 void lineHandler()
override;
138 void showInventory()
const override;
139 void takeObject(
Object *obj)
override;
142 virtual void dropObject(
Object *obj);
144 const char *findNextNoun(
const char *noun)
const;
145 bool isBackgroundWord_v1(
const char *noun,
const char *verb, ObjectList obj)
const;
146 bool isCatchallVerb_v1(
bool testNounFl,
const char *noun,
const char *verb, ObjectList obj)
const;
147 bool isGenericVerb_v1(
const char *word,
Object *obj);
148 bool isNear_v1(
const char *verb,
const char *noun,
Object *obj,
char *comment)
const;
149 bool isObjectVerb_v1(
const char *word,
Object *obj);
157 void lineHandler()
override;
165 void lineHandler()
override;
167 void dropObject(
Object *obj)
override;
168 bool isBackgroundWord_v3(ObjectList obj)
const;
169 bool isCatchallVerb_v3(ObjectList obj)
const;
170 bool isGenericVerb_v3(
Object *obj,
char *comment);
171 bool isNear_v3(
Object *obj,
const char *verb,
char *comment)
const;
172 bool isObjectVerb_v3(
Object *obj,
char *comment);
173 void takeObject(
Object *obj)
override;
181 void showInventory()
const override;
183 void lineHandler()
override;
188 #endif //HUGO_PARSER_H
Definition: algorithm.h:29