ScummVM API documentation
Titanic::CGameState Class Reference

Public Member Functions

 CGameState (CGameManager *gameManager)
 
void save (SimpleFile *file) const
 
void load (SimpleFile *file)
 
void setMode (GameStateMode newMode)
 
void setMousePos (const Point &pt)
 
Point getMousePos () const
 
void enterNode ()
 
void enterView ()
 
void triggerLink (CLinkItem *link)
 
void changeView (CViewItem *newView, CMovieClip *clip)
 
void checkForViewChange ()
 
void addMovie (CMovie *movie)
 
void changeSeason ()
 
void setParrotMet (bool flag)
 
bool getParrotMet () const
 
int getNodeChangedCtr () const
 
uint32 getNodeEnterTicks () const
 
void incParrotResponse ()
 

Public Attributes

CGameManager_gameManager
 
CGameLocation _gameLocation
 
CGameStateMovieList _movieList
 
PassengerClass _passengerClass
 
PassengerClass _priorClass
 
GameStateMode _mode
 
Season _seasonNum
 
bool _petActive
 
bool _soundMakerAllowed
 
bool _quitGame
 
bool _parrotMet
 
uint _nodeChangeCtr
 
uint32 _nodeEnterTicks
 
Point _mousePos
 
int _parrotResponseIndex
 

Member Function Documentation

◆ save()

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

Save the data for the class to file

◆ load()

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

Load the data for the class from file

◆ setMode()

void Titanic::CGameState::setMode ( GameStateMode  newMode)

Sets a new mode

◆ setMousePos()

void Titanic::CGameState::setMousePos ( const Point pt)
inline

Sets the current mouse position

◆ getMousePos()

Point Titanic::CGameState::getMousePos ( ) const
inline

Gets the current mouse position

◆ enterNode()

void Titanic::CGameState::enterNode ( )

Called by the PET when a new node is entered

◆ enterView()

void Titanic::CGameState::enterView ( )

Enters a new view

◆ triggerLink()

void Titanic::CGameState::triggerLink ( CLinkItem link)

Triggers a link item in a view

◆ changeView()

void Titanic::CGameState::changeView ( CViewItem newView,
CMovieClip clip 
)

Changes the current view

◆ checkForViewChange()

void Titanic::CGameState::checkForViewChange ( )

Check for whether it's time to change the active view

◆ addMovie()

void Titanic::CGameState::addMovie ( CMovie movie)

Adds a movie to the movie list

◆ changeSeason()

void Titanic::CGameState::changeSeason ( )
inline

Change to the next season

◆ setParrotMet()

void Titanic::CGameState::setParrotMet ( bool  flag)
inline

Sets whether the parrot has been met

◆ getParrotMet()

bool Titanic::CGameState::getParrotMet ( ) const
inline

Gets whether the parrot has been met

◆ getNodeChangedCtr()

int Titanic::CGameState::getNodeChangedCtr ( ) const
inline

Gets the counter for the number of times different nodes have been entered

◆ getNodeEnterTicks()

uint32 Titanic::CGameState::getNodeEnterTicks ( ) const
inline

Gets the node enter ticks amount

◆ incParrotResponse()

void Titanic::CGameState::incParrotResponse ( )
inline

Increments the index to use for parrot idle responses


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