ScummVM API documentation
Titanic::TTroomScript Class Reference
Inheritance diagram for Titanic::TTroomScript:
Titanic::TTroomScriptBase Titanic::TTscriptBase

Public Member Functions

 TTroomScript (int scriptId)
 
bool canRespond (TTnpcScript *npcScript, TTsentence *sentence, int val) const override
 
bool canProcess (TTnpcScript *npcScript, TTsentence *sentence) const override
 
bool proc8 () const override
 
void proc9 (int v) override
 
ScriptChangedResult scriptChanged (TTscriptBase *npcScript, int id) override
 
bool proc11 () const override
 
ScriptChangedResult notifyScript (TTscriptBase *npcScript, int id)
 
- Public Member Functions inherited from Titanic::TTroomScriptBase
 TTroomScriptBase (int scriptId, const char *charClass, const char *charName, int v3, int v4, int v5, int v6, int v2, int v7)
 
- Public Member Functions inherited from Titanic::TTscriptBase
 TTscriptBase (int scriptId, const char *charClass, int v2, const char *charName, int v3, int v4, int v5, int v6, int v7)
 
virtual void addResponse (const TTstring &str)
 
virtual void addResponse (int id)
 
virtual void applyResponse ()
 
bool isValid ()
 
int getId () const
 
int getStatus () const
 
const TTstring getText ()
 
int scriptPreprocess (TTsentence *sentence)
 

Public Attributes

int _field54
 
- Public Attributes inherited from Titanic::TTroomScriptBase
uint _scriptId
 
- Public Attributes inherited from Titanic::TTscriptBase
int _id
 

Additional Inherited Members

- Protected Member Functions inherited from Titanic::TTscriptBase
void deleteResponses ()
 
void appendResponse (int index, int *maxP, int id)
 
void appendResponse (int index, int *maxP, const TTstring &str)
 
void appendResponse2 (int index, int *maxP, const TTstring &str)
 
void setState (int state)
 
int getState () const
 
- Protected Attributes inherited from Titanic::TTscriptBase
TTnode_nodesP
 
TThist_hist1P
 
TTstring _charName
 
TTstring _charClass
 
int _field20
 
int _field24
 
int _field28
 
int _field2C
 
int _field30
 
int _state
 
TThist_hist2P
 
int _field3C
 
TTresponse_respTailP
 
TTresponse_respHeadP
 
TTresponse_oldResponseP
 
int _status
 

Member Function Documentation

◆ canRespond()

bool Titanic::TTroomScript::canRespond ( TTnpcScript npcScript,
TTsentence sentence,
int  val 
) const
inlineoverridevirtual

Returns true if a response can be made

Implements Titanic::TTroomScriptBase.

◆ canProcess()

bool Titanic::TTroomScript::canProcess ( TTnpcScript npcScript,
TTsentence sentence 
) const
inlineoverridevirtual

Returns true if further sentence processing is allowed

Implements Titanic::TTroomScriptBase.

◆ scriptChanged()

ScriptChangedResult Titanic::TTroomScript::scriptChanged ( TTscriptBase npcScript,
int  id 
)
overridevirtual

Called when the script changes

Implements Titanic::TTroomScriptBase.

◆ notifyScript()

ScriptChangedResult Titanic::TTroomScript::notifyScript ( TTscriptBase npcScript,
int  id 
)
inline

Called with the new script and id


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