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 |
| void | actionStart (Common::CustomEventType action) 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 |
|
overridevirtual |
Called to handle any regular updates the game requires
Reimplemented from Titanic::CEventTarget.
|
overridevirtual |
Mouse/key event handlers
Reimplemented from Titanic::CEventTarget.
| bool Titanic::CMainGameWindow::applicationStarting | ( | ) |
Called when the application starts
| void Titanic::CMainGameWindow::setActiveView | ( | CViewItem * | viewItem | ) |
Sets the view to be shown
| void Titanic::CMainGameWindow::draw | ( | ) |
Main draw method for the window
| void Titanic::CMainGameWindow::mouseChanged | ( | ) |
Called by the event handler when a mouse event has been generated
| void Titanic::CMainGameWindow::loadGame | ( | int | slotId | ) |
Schedules a savegame to be loaded