ScummVM API documentation
Titanic::TTsentence Class Reference

Public Member Functions

 TTsentence (int inputCtr, const TTstring &line, CScriptHandler *owner, TTroomScript *roomScript, TTnpcScript *npcScript)
 
 TTsentence (const TTsentence *src)
 
void setState (int v)
 
void set38 (int v)
 
bool checkCategory () const
 
int concept18 (TTconceptNode *conceptNode)
 
int get58 () const
 
int is18 (int val, const TTconceptNode *node) const
 
int is1C (int val, const TTconceptNode *node) const
 
int getStatus () const
 
TTconceptgetFrameEntry (int slotIndex, const TTconceptNode *conceptNode=nullptr) const
 
TTconceptgetFrameSlot (int slotIndex, const TTconceptNode *conceptNode=nullptr) const
 
bool isFrameSlotClass (int slotIndex, WordClass wordClass, const TTconceptNode *conceptNode=nullptr) const
 
int storeVocabHit (TTword *word)
 
bool fn1 (const CString &str, int wordId1, const CString &str1, const CString &str2, const CString &str3, int wordId2, int val1, int val2, const TTconceptNode *node) const
 
bool fn3 (const CString &str1, const CString &str2, const CString &str3, const CString &str4, const CString &str5, const CString &str6, int val1, int val2, const TTconceptNode *node) const
 
bool fn2 (int slotIndex, const TTstring &str, const TTconceptNode *node=nullptr) const
 
bool fn4 (int mode, int wordId, const TTconceptNode *node=nullptr) const
 
bool isConcept34 (int slotIndex, const TTconceptNode *node=nullptr) const
 
bool localWord (const char *str) const
 
bool contains (const char *str) const
 

Public Attributes

TTsentenceConcept _sentenceConcept
 
TTstring _initialLine
 
TTstring _normalizedLine
 
int _field38
 
int _field58
 
TTroomScript_roomScript
 
TTnpcScript_npcScript
 
int _category
 

Member Function Documentation

◆ getFrameEntry()

TTconcept* Titanic::TTsentence::getFrameEntry ( int  slotIndex,
const TTconceptNode conceptNode = nullptr 
) const

Gets a concept slot

◆ getFrameSlot()

TTconcept* Titanic::TTsentence::getFrameSlot ( int  slotIndex,
const TTconceptNode conceptNode = nullptr 
) const

Gets a conecpt slot and returns a duplicate of it

◆ isFrameSlotClass()

bool Titanic::TTsentence::isFrameSlotClass ( int  slotIndex,
WordClass  wordClass,
const TTconceptNode conceptNode = nullptr 
) const

Returns true if the specified slot has an attached word with a given class

◆ storeVocabHit()

int Titanic::TTsentence::storeVocabHit ( TTword word)

Adds a found vocab word to the list of words representing the player's input

Parameters
wordWord to node

◆ localWord()

bool Titanic::TTsentence::localWord ( const char *  str) const

Returns true if the sentence contains the specified word, allowing for common synonyms of the desired word

◆ contains()

bool Titanic::TTsentence::contains ( const char *  str) const

Returns true if the sentence (either the original or normalized lines) contain the specified substring


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