ScummVM API documentation
Titanic::TTconcept Class Reference

Public Member Functions

 TTconcept (TTscriptBase *script, ScriptType scriptType)
 
 TTconcept (TTword *word, ScriptType scriptType=ST_UNKNOWN_SCRIPT)
 
 TTconcept (TTconcept &src)
 
void deleteSiblings ()
 
void copyFrom (TTconcept *src)
 
bool compareTo (const char *str) const
 
bool compareTo (TTword *word) const
 
int setOwner (TTconcept *src)
 
int setOwner (TTword *src, bool dontDup)
 
int getStatus () const
 
bool isValid () const
 
bool isWordClass (WordClass wordClass) const
 
void setFlag (bool val)
 
void set1C (int val)
 
int get20 () const
 
int getState () const
 
bool checkWordId1 () const
 
bool checkWordId2 () const
 
bool checkWordId3 () const
 
bool checkWordClass () const
 
const TTstring getText ()
 
TTconceptfindByWordId (int id)
 
TTconceptfindBy20 (int val)
 
bool isTheWordId (int id) const
 
int getTheWordId () const
 

Static Public Member Functions

static TTconceptfindByWordClass (TTconcept *conceptP, WordClass wordClass)
 

Public Attributes

TTconcept_nextP
 
TTscriptBase_scriptP
 
TTword_wordP
 
int _scriptType
 
int _field14
 
int _field20
 
int _field34
 
TTstring _string2
 

Member Function Documentation

◆ deleteSiblings()

void Titanic::TTconcept::deleteSiblings ( )

Destroys any attached sibling concepts to the given concept

◆ copyFrom()

void Titanic::TTconcept::copyFrom ( TTconcept src)

Copies data from a source concept

◆ compareTo() [1/2]

bool Titanic::TTconcept::compareTo ( const char *  str) const

Compares the name of the associated word, if any, to the passed string

◆ compareTo() [2/2]

bool Titanic::TTconcept::compareTo ( TTword word) const

Compares the concept to the specified word

◆ setOwner() [1/2]

int Titanic::TTconcept::setOwner ( TTconcept src)

Set an owner for the concept

◆ setOwner() [2/2]

int Titanic::TTconcept::setOwner ( TTword src,
bool  dontDup 
)

Set an owner for the concept

◆ getStatus()

int Titanic::TTconcept::getStatus ( ) const
inline

Return the status of the concept

◆ isValid()

bool Titanic::TTconcept::isValid ( ) const
inline

True true if the concept is valid

◆ isWordClass()

bool Titanic::TTconcept::isWordClass ( WordClass  wordClass) const
inline

Returns true if the word is of the specified class

◆ getText()

const TTstring Titanic::TTconcept::getText ( )

Return text assocaited with the concept's word or script

◆ findByWordId()

TTconcept* Titanic::TTconcept::findByWordId ( int  id)

Find a word by Id

◆ findByWordClass()

static TTconcept* Titanic::TTconcept::findByWordClass ( TTconcept conceptP,
WordClass  wordClass 
)
static

Find a word by it's class

◆ isTheWordId()

bool Titanic::TTconcept::isTheWordId ( int  id) const

Returns true if the concept has a word with a given Id

◆ getTheWordId()

int Titanic::TTconcept::getTheWordId ( ) const

If a word is associated, return it's Id


The documentation for this class was generated from the following file: