22 #ifndef TITANIC_TT_CONCEPT_H 23 #define TITANIC_TT_CONCEPT_H 25 #include "titanic/true_talk/tt_string.h" 26 #include "titanic/true_talk/tt_word.h" 30 enum ScriptType { ST_UNKNOWN_SCRIPT = 0, ST_ROOM_SCRIPT = 1, ST_NPC_SCRIPT = 2 };
52 void setScriptType(ScriptType scriptType);
57 int initializeWordRef(
TTword *word);
122 bool isValid()
const {
return _status == SS_VALID; }
128 return _wordP && _wordP->
isClass(wordClass);
131 void setFlag(
bool val) { _flag = val; }
132 void set1C(
int val) { _field1C = val; }
133 int get20()
const {
return _field20; }
134 int getState()
const {
return _field34; }
136 bool checkWordId1()
const;
137 bool checkWordId2()
const;
138 bool checkWordId3()
const;
139 bool checkWordClass()
const;
169 extern bool isWordId(
const TTconcept *conceptP,
int id);
171 extern int getWordId(
const TTconcept *conceptP);
bool compareTo(const char *str) const
Definition: tt_concept.h:35
bool isValid() const
Definition: tt_concept.h:122
int setOwner(TTconcept *src)
void copyFrom(TTconcept *src)
TTconcept * findByWordId(int id)
int getStatus() const
Definition: tt_concept.h:117
static TTconcept * findByWordClass(TTconcept *conceptP, WordClass wordClass)
Definition: tt_string.h:45
bool isClass(WordClass wordClass) const
Definition: tt_word.h:148
bool isWordClass(WordClass wordClass) const
Definition: tt_concept.h:127
bool isTheWordId(int id) const
Definition: tt_script_base.h:38