ScummVM API documentation
Titanic::CGameManager Class Reference

Public Member Functions

 CGameManager (CProjectItem *project, CGameView *gameView, Audio::Mixer *mixer)
 
void destroyTreeItem ()
 
void save (SimpleFile *file)
 
void load (SimpleFile *file)
 
void preLoad ()
 
void postLoad (CProjectItem *project)
 
void preSave (CProjectItem *project)
 
void postSave ()
 
void updateDiskTicksCount ()
 
CViewItemgetView ()
 
CNodeItemgetNode ()
 
CRoomItemgetRoom ()
 
void lockInputHandler ()
 
void unlockInputHandler ()
 
void playClip (CMovieClip *clip, CRoomItem *oldRoom, CRoomItem *newRoom)
 
void update ()
 
void roomChange ()
 
bool isntTransitioning () const
 
void incTransitions ()
 
void decTransitions ()
 
void addDirtyRect (const Rect &r)
 
void markAllDirty ()
 
CScreenManagersetScreenManager () const
 
void addTimer (CTimeEventInfo *timer)
 
void stopTimer (uint id)
 
void setTimerPersisent (uint id, bool flag)
 
CTrueTalkManagergetTalkManager ()
 
CString getFullViewName ()
 

Public Attributes

CProjectItem_project
 
CGameView_gameView
 
CGameState _gameState
 
Rect _bounds
 
CInputHandler _inputHandler
 
CInputTranslator _inputTranslator
 
CTreeItem_dragItem
 
CSound _sound
 
CMusicRoom _musicRoom
 

Member Function Documentation

◆ destroyTreeItem()

void Titanic::CGameManager::destroyTreeItem ( )

Destroys and allocated tree item

◆ save()

void Titanic::CGameManager::save ( SimpleFile file)

Save data to a save file

◆ load()

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

Load data from a save file

◆ preLoad()

void Titanic::CGameManager::preLoad ( )

Called when a game is about to be loaded

◆ postLoad()

void Titanic::CGameManager::postLoad ( CProjectItem project)

Called after loading a game has finished

◆ preSave()

void Titanic::CGameManager::preSave ( CProjectItem project)

Called when a game is about to be saved

◆ postSave()

void Titanic::CGameManager::postSave ( )

Called when a game has finished being saved

◆ updateDiskTicksCount()

void Titanic::CGameManager::updateDiskTicksCount ( )

Updates the game time when the last disk access started

◆ getView()

CViewItem* Titanic::CGameManager::getView ( )
inline

Gets the current view

◆ getNode()

CNodeItem* Titanic::CGameManager::getNode ( )
inline

Gets the current room node

◆ getRoom()

CRoomItem* Titanic::CGameManager::getRoom ( )
inline

Gets the current room

◆ lockInputHandler()

void Titanic::CGameManager::lockInputHandler ( )
inline

Lock the input handler

◆ unlockInputHandler()

void Titanic::CGameManager::unlockInputHandler ( )
inline

Unlock the input handler

◆ playClip()

void Titanic::CGameManager::playClip ( CMovieClip clip,
CRoomItem oldRoom,
CRoomItem newRoom 
)

Plays a movie clip

◆ update()

void Titanic::CGameManager::update ( )

Main frame update method for the game

◆ roomChange()

void Titanic::CGameManager::roomChange ( )

Called when the room changes

◆ isntTransitioning()

bool Titanic::CGameManager::isntTransitioning ( ) const
inline

Returns true if no transition is currently in progress

◆ incTransitions()

void Titanic::CGameManager::incTransitions ( )
inline

Increments the number of active transitions

◆ decTransitions()

void Titanic::CGameManager::decTransitions ( )
inline

Decremenst the number of active transitions

◆ addDirtyRect()

void Titanic::CGameManager::addDirtyRect ( const Rect r)

Extends the bounds of the currently dirty area of the game screen to include the specified area

◆ markAllDirty()

void Titanic::CGameManager::markAllDirty ( )

Marks the entire screen as dirty, requiring redraw

◆ setScreenManager()

CScreenManager* Titanic::CGameManager::setScreenManager ( ) const

Set and return the current screen manager

◆ addTimer()

void Titanic::CGameManager::addTimer ( CTimeEventInfo timer)
inline

Adds a timer

◆ stopTimer()

void Titanic::CGameManager::stopTimer ( uint  id)
inline

Stops a timer

◆ setTimerPersisent()

void Titanic::CGameManager::setTimerPersisent ( uint  id,
bool  flag 
)
inline

Flags whether the timer will be persisent across save & loads

◆ getTalkManager()

CTrueTalkManager* Titanic::CGameManager::getTalkManager ( )
inline

Return the true talk manager

◆ getFullViewName()

CString Titanic::CGameManager::getFullViewName ( )

Return the full Id of the current view in a room.node.view tuplet form


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