ScummVM API documentation
Titanic::CTrueTalkManager Class Reference

Public Member Functions

 CTrueTalkManager (CGameManager *owner)
 
void save (SimpleFile *file) const
 
void load (SimpleFile *file)
 
void clear ()
 
void preLoad ()
 
void postLoad ()
 
void preSave ()
 
void postSave ()
 
TTscriptsgetScripts ()
 
void removeCompleted ()
 
CGameManagergetGameManager () const
 
void start (CTrueTalkNPC *npc, uint id, CViewItem *view)
 
void start3 (CTrueTalkNPC *npc, CViewItem *view)
 
void start4 (CTrueTalkNPC *npc, CViewItem *view)
 
TTnpcScriptgetTalker (const CString &name) const
 
void processInput (CTrueTalkNPC *npc, CTextInputMsg *msg, CViewItem *view)
 
TTroomScriptgetRoomScript (int roomId) const
 
int getPassengerClass () const
 
Season getCurrentSeason () const
 

Static Public Member Functions

static void setFlags (int index, int val)
 
static int getStateValue (int stateNum)
 
static bool triggerAction (int action, int param)
 

Public Attributes

TTquotes _quotes
 
TTquotesTree _quotesTree
 

Static Public Attributes

static int _v1
 
static int _v2
 
static int _v3
 
static bool _v4
 
static bool _v5
 
static int _v6
 
static int _v7
 
static bool _v8
 
static int _v9
 
static bool _v10
 
static int _v11 [41]
 
static CTrueTalkNPC_currentNPC
 

Member Function Documentation

◆ getStateValue()

static int Titanic::CTrueTalkManager::getStateValue ( int  stateNum)
static

Get a specified state value from the currently set NPC

◆ triggerAction()

static bool Titanic::CTrueTalkManager::triggerAction ( int  action,
int  param 
)
static

Trigger an NPC action

◆ save()

void Titanic::CTrueTalkManager::save ( SimpleFile file) const

Save the data for the class to file

◆ load()

void Titanic::CTrueTalkManager::load ( SimpleFile file)

Load the data for the class from file

◆ clear()

void Titanic::CTrueTalkManager::clear ( )

Clear the manager

◆ preLoad()

void Titanic::CTrueTalkManager::preLoad ( )

Called when a game is about to be loaded

◆ postLoad()

void Titanic::CTrueTalkManager::postLoad ( )
inline

Called when loading a game is complete

◆ preSave()

void Titanic::CTrueTalkManager::preSave ( )
inline

Called when a game is about to be saved

◆ postSave()

void Titanic::CTrueTalkManager::postSave ( )
inline

Called when a game has finished being saved

◆ getScripts()

TTscripts& Titanic::CTrueTalkManager::getScripts ( )
inline

Returns the scripts for the manager

◆ removeCompleted()

void Titanic::CTrueTalkManager::removeCompleted ( )

Remove any completed talkers

◆ getGameManager()

CGameManager* Titanic::CTrueTalkManager::getGameManager ( ) const

Return the game manager

◆ start()

void Titanic::CTrueTalkManager::start ( CTrueTalkNPC npc,
uint  id,
CViewItem view 
)

Start a TrueTalk conversation

◆ start3()

void Titanic::CTrueTalkManager::start3 ( CTrueTalkNPC npc,
CViewItem view 
)

Start a TrueTalk conversation

◆ start4()

void Titanic::CTrueTalkManager::start4 ( CTrueTalkNPC npc,
CViewItem view 
)

Start a TrueTalk conversation

◆ getTalker()

TTnpcScript* Titanic::CTrueTalkManager::getTalker ( const CString name) const

Return a TrueTalk talker/script

◆ processInput()

void Titanic::CTrueTalkManager::processInput ( CTrueTalkNPC npc,
CTextInputMsg msg,
CViewItem view 
)

Process player's input

◆ getRoomScript()

TTroomScript* Titanic::CTrueTalkManager::getRoomScript ( int  roomId) const

Gets the script associated with a specific room

◆ getPassengerClass()

int Titanic::CTrueTalkManager::getPassengerClass ( ) const

Get the player's passenger class


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