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

Public Member Functions

 TTroomScriptBase (int scriptId, const char *charClass, const char *charName, int v3, int v4, int v5, int v6, int v2, int v7)
 
virtual bool canRespond (TTnpcScript *npcScript, TTsentence *sentence, int val) const =0
 
virtual bool canProcess (TTnpcScript *npcScript, TTsentence *sentence) const =0
 
virtual bool proc8 () const =0
 
virtual void proc9 (int v)=0
 
virtual ScriptChangedResult scriptChanged (TTscriptBase *npcScript, int id)=0
 
virtual bool proc11 () const =0
 
- 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

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()

virtual bool Titanic::TTroomScriptBase::canRespond ( TTnpcScript npcScript,
TTsentence sentence,
int  val 
) const
pure virtual

Returns true if a response can be made

Implemented in Titanic::TTroomScript.

◆ canProcess()

virtual bool Titanic::TTroomScriptBase::canProcess ( TTnpcScript npcScript,
TTsentence sentence 
) const
pure virtual

Returns true if further sentence processing is allowed

Implemented in Titanic::TTroomScript.

◆ scriptChanged()

virtual ScriptChangedResult Titanic::TTroomScriptBase::scriptChanged ( TTscriptBase npcScript,
int  id 
)
pure virtual

Called when the script changes

Implemented in Titanic::TTroomScript.


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