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"
30enum 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;
169extern bool isWordId(
const TTconcept *conceptP,
int id);
171extern int getWordId(
const TTconcept *conceptP);
Definition: tt_concept.h:35
int setOwner(TTword *src, bool dontDup)
void copyFrom(TTconcept *src)
bool compareTo(TTword *word) const
bool isWordClass(WordClass wordClass) const
Definition: tt_concept.h:127
bool compareTo(const char *str) const
bool isTheWordId(int id) const
TTconcept * findByWordId(int id)
static TTconcept * findByWordClass(TTconcept *conceptP, WordClass wordClass)
int getStatus() const
Definition: tt_concept.h:117
bool isValid() const
Definition: tt_concept.h:122
int setOwner(TTconcept *src)
Definition: tt_script_base.h:38
Definition: tt_string.h:45
bool isClass(WordClass wordClass) const
Definition: tt_word.h:148