ScummVM API documentation
Titanic::TTnpcScriptBase Class Referenceabstract
Inheritance diagram for Titanic::TTnpcScriptBase:
Titanic::TTscriptBase Titanic::TTnpcScript Titanic::BarbotScript Titanic::BellbotScript Titanic::DeskbotScript Titanic::DoorbotScript Titanic::LiftbotScript Titanic::MaitreDScript Titanic::ParrotScript Titanic::SuccUBusScript

Public Member Functions

 TTnpcScriptBase (int charId, const char *charClass, int v2, const char *charName, int v3, int val2, int v4, int v5, int v6, int v7)
 
virtual int chooseResponse (const TTroomScript *roomScript, const TTsentence *sentence, uint tag)=0
 
virtual int process (const TTroomScript *roomScript, const TTsentence *sentence)=0
 
virtual int proc8 () const =0
 
virtual ScriptChangedResult scriptChanged (uint id)=0
 
virtual ScriptChangedResult scriptChanged (const TTroomScript *roomScript, uint id)=0
 
virtual int proc11 () const =0
 
virtual int proc12 () const =0
 
int charId () const
 
- 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 _charId
 
- Public Attributes inherited from Titanic::TTscriptBase
int _id
 

Protected Attributes

int _field54
 
int _val2
 
- 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
 

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
 

Member Function Documentation

◆ chooseResponse()

virtual int Titanic::TTnpcScriptBase::chooseResponse ( const TTroomScript roomScript,
const TTsentence sentence,
uint  tag 
)
pure virtual

Chooses and adds a conversation response based on a specified tag Id.

Implemented in Titanic::TTnpcScript, Titanic::MaitreDScript, Titanic::DoorbotScript, Titanic::BarbotScript, Titanic::LiftbotScript, Titanic::SuccUBusScript, and Titanic::ParrotScript.

◆ process()

virtual int Titanic::TTnpcScriptBase::process ( const TTroomScript roomScript,
const TTsentence sentence 
)
pure virtual

◆ scriptChanged() [1/2]

virtual ScriptChangedResult Titanic::TTnpcScriptBase::scriptChanged ( uint  id)
pure virtual

Called when the script/id changes

Implemented in Titanic::TTnpcScript, and Titanic::LiftbotScript.

◆ scriptChanged() [2/2]

virtual ScriptChangedResult Titanic::TTnpcScriptBase::scriptChanged ( const TTroomScript roomScript,
uint  id 
)
pure virtual

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