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

Public Member Functions

 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 _id
 

Protected Member Functions

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

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

◆ deleteResponses()

void Titanic::TTscriptBase::deleteResponses ( )
protected

Delete any responses set up for the script

◆ appendResponse() [1/2]

void Titanic::TTscriptBase::appendResponse ( int  index,
int *  maxP,
int  id 
)
protected

Creates and appends a new response fragment to the script specified by the given conversation Id

◆ appendResponse() [2/2]

void Titanic::TTscriptBase::appendResponse ( int  index,
int *  maxP,
const TTstring str 
)
protected

Creates and appends a new response fragment string to the script

◆ appendResponse2()

void Titanic::TTscriptBase::appendResponse2 ( int  index,
int *  maxP,
const TTstring str 
)
inlineprotected

Creates and appends a new response fragment string to the script

◆ setState()

void Titanic::TTscriptBase::setState ( int  state)
inlineprotected

Set the script state

◆ getState()

int Titanic::TTscriptBase::getState ( ) const
inlineprotected

Get the current state

◆ applyResponse()

virtual void Titanic::TTscriptBase::applyResponse ( )
virtual

Passes on the list of dialogue Ids stored in the response(s) to the title engine for later display in the PET

◆ isValid()

bool Titanic::TTscriptBase::isValid ( )

Returns true if the script is in a valid state

◆ getId()

int Titanic::TTscriptBase::getId ( ) const
inline

Return the Id of the script

◆ getStatus()

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

Return the status

◆ getText()

const TTstring Titanic::TTscriptBase::getText ( )
inline

Return the script text

◆ scriptPreprocess()

int Titanic::TTscriptBase::scriptPreprocess ( TTsentence sentence)

Gets passed a newly created input wrapper during conversation text processing


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