ScummVM API documentation
Titanic::CMainGameWindow Class Reference
Inheritance diagram for Titanic::CMainGameWindow:
Titanic::CEventTarget

Public Member Functions

 CMainGameWindow (TitanicEngine *vm)
 
void onIdle () override
 
void mouseMove (const Point &mousePos) override
 
void leftButtonDown (const Point &mousePos) override
 
void leftButtonUp (const Point &mousePos) override
 
void middleButtonDown (const Point &mousePos) override
 
void middleButtonUp (const Point &mousePos) override
 
void mouseWheel (const Point &mousePos, bool wheelUp) override
 
void keyDown (Common::KeyState keyState) override
 
bool applicationStarting ()
 
void setActiveView (CViewItem *viewItem)
 
void draw ()
 
void mouseChanged ()
 
void loadGame (int slotId)
 
- Public Member Functions inherited from Titanic::CEventTarget
virtual void keyUp (Common::KeyState keyState)
 

Public Attributes

CGameView_gameView
 
CGameManager_gameManager
 
CProjectItem_project
 
bool _inputAllowed
 
Image_image
 
void * _cursor
 

Member Function Documentation

◆ onIdle()

void Titanic::CMainGameWindow::onIdle ( )
overridevirtual

Called to handle any regular updates the game requires

Reimplemented from Titanic::CEventTarget.

◆ mouseMove()

void Titanic::CMainGameWindow::mouseMove ( const Point mousePos)
overridevirtual

Mouse/key event handlers

Reimplemented from Titanic::CEventTarget.

◆ applicationStarting()

bool Titanic::CMainGameWindow::applicationStarting ( )

Called when the application starts

◆ setActiveView()

void Titanic::CMainGameWindow::setActiveView ( CViewItem viewItem)

Sets the view to be shown

◆ draw()

void Titanic::CMainGameWindow::draw ( )

Main draw method for the window

◆ mouseChanged()

void Titanic::CMainGameWindow::mouseChanged ( )

Called by the event handler when a mouse event has been generated

◆ loadGame()

void Titanic::CMainGameWindow::loadGame ( int  slotId)

Schedules a savegame to be loaded


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