ResidualVM logo ResidualVM website - Forums - Contact us BuildBot - Doxygen - Wiki curved edge

Game world screen. More...

#include <gamescreen.h>

Inheritance diagram for Stark::GameScreen:
Collaboration diagram for Stark::GameScreen:

List of all members.

Public Member Functions

 GameScreen (Gfx::Driver *gfx, Cursor *cursor)
virtual ~GameScreen ()
void open () override
 The screen is being made active, prepare it to be drawn.
void close () override
 The screen is no longer active, release resources to free memory.
void handleGameLoop () override
 Called once per game loop when the screen is active.
void render () override
 Draw the screen.
void onScreenChanged () override
 Called when the screen resolution changes.
void handleMouseMove () override
void handleClick () override
void handleRightClick () override
void handleDoubleClick () override
InventoryWindowgetInventoryWindow () const
 Get individual windows.
GameWindowgetGameWindow () const
DialogPanelgetDialogPanel () const
void reset ()
 Clear any location dependant state.
void notifyInventoryItemEnabled (uint16 itemIndex)
 A new item has been added to the player's inventory.
void notifyDiaryEntryEnabled ()
 A new entry has been added to the player's diary.

Private Types

typedef void(Window::* WindowHandler )()

Private Member Functions

void dispatchEvent (WindowHandler handler)
void pauseGame (bool pause)

Private Attributes

Gfx::Driver_gfx
Cursor_cursor
ActionMenu_actionMenu
DialogPanel_dialogPanel
InventoryWindow_inventoryWindow
TopMenu_topMenu
GameWindow_gameWindow
Common::Array< Window * > _gameScreenWindows

Detailed Description

Game world screen.

Container for all the game world windows

Definition at line 43 of file gamescreen.h.


Member Typedef Documentation

typedef void(Window::* Stark::GameScreen::WindowHandler)() [private]

Definition at line 88 of file gamescreen.h.


Constructor & Destructor Documentation

Stark::GameScreen::GameScreen ( Gfx::Driver gfx,
Cursor cursor 
)

Definition at line 41 of file gamescreen.cpp.

Stark::GameScreen::~GameScreen (  )  [virtual]

Definition at line 60 of file gamescreen.cpp.


Member Function Documentation

void Stark::GameScreen::close (  )  [override, virtual]

The screen is no longer active, release resources to free memory.

Reimplemented from Stark::Screen.

Definition at line 73 of file gamescreen.cpp.

void Stark::GameScreen::dispatchEvent ( WindowHandler  handler  )  [private]

Definition at line 126 of file gamescreen.cpp.

DialogPanel * Stark::GameScreen::getDialogPanel (  )  const

Definition at line 106 of file gamescreen.cpp.

GameWindow * Stark::GameScreen::getGameWindow (  )  const

Definition at line 102 of file gamescreen.cpp.

InventoryWindow * Stark::GameScreen::getInventoryWindow (  )  const

Get individual windows.

Definition at line 91 of file gamescreen.cpp.

void Stark::GameScreen::handleClick (  )  [override, virtual]

Implements Stark::Screen.

Definition at line 114 of file gamescreen.cpp.

void Stark::GameScreen::handleDoubleClick (  )  [override, virtual]

Implements Stark::Screen.

Definition at line 122 of file gamescreen.cpp.

void Stark::GameScreen::handleGameLoop (  )  [override, virtual]

Called once per game loop when the screen is active.

Reimplemented from Stark::Screen.

Definition at line 79 of file gamescreen.cpp.

void Stark::GameScreen::handleMouseMove (  )  [override, virtual]

Implements Stark::Screen.

Definition at line 110 of file gamescreen.cpp.

void Stark::GameScreen::handleRightClick (  )  [override, virtual]

Implements Stark::Screen.

Definition at line 118 of file gamescreen.cpp.

void Stark::GameScreen::notifyDiaryEntryEnabled (  ) 

A new entry has been added to the player's diary.

Definition at line 147 of file gamescreen.cpp.

void Stark::GameScreen::notifyInventoryItemEnabled ( uint16  itemIndex  ) 

A new item has been added to the player's inventory.

Definition at line 143 of file gamescreen.cpp.

void Stark::GameScreen::onScreenChanged (  )  [override, virtual]

Called when the screen resolution changes.

Reimplemented from Stark::Screen.

Definition at line 135 of file gamescreen.cpp.

void Stark::GameScreen::open (  )  [override, virtual]

The screen is being made active, prepare it to be drawn.

Reimplemented from Stark::Screen.

Definition at line 68 of file gamescreen.cpp.

void Stark::GameScreen::pauseGame ( bool  pause  )  [private]

Definition at line 151 of file gamescreen.cpp.

void Stark::GameScreen::render (  )  [override, virtual]

Draw the screen.

Implements Stark::Screen.

Definition at line 85 of file gamescreen.cpp.

void Stark::GameScreen::reset (  ) 

Clear any location dependant state.

Definition at line 95 of file gamescreen.cpp.


Member Data Documentation

Definition at line 79 of file gamescreen.h.

Definition at line 76 of file gamescreen.h.

Definition at line 80 of file gamescreen.h.

Definition at line 86 of file gamescreen.h.

Definition at line 83 of file gamescreen.h.

Definition at line 75 of file gamescreen.h.

Definition at line 81 of file gamescreen.h.

Definition at line 82 of file gamescreen.h.


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


Generated on Sat Nov 9 2019 05:02:26 for ResidualVM by doxygen 1.7.1
curved edge   curved edge