ScummVM API documentation
Stark::GameScreen Class Reference

#include <gamescreen.h>

Inheritance diagram for Stark::GameScreen:
Stark::Screen

Public Member Functions

 GameScreen (Gfx::Driver *gfx, Cursor *cursor)
 
void open () override
 
void close () override
 
void handleGameLoop () override
 
void render () override
 
void onScreenChanged () override
 
void handleMouseMove () override
 
void handleClick () override
 
void handleRightClick () override
 
void handleDoubleClick () override
 
InventoryWindowgetInventoryWindow () const
 
GameWindowgetGameWindow () const
 
DialogPanelgetDialogPanel () const
 
void reset ()
 
void notifyInventoryItemEnabled (uint16 itemIndex)
 
void notifyDiaryEntryEnabled ()
 
- Public Member Functions inherited from Stark::Screen
 Screen (Name name)
 
Name getName () const
 

Additional Inherited Members

- Public Types inherited from Stark::Screen
enum  Name {
  kScreenMainMenu, kScreenGame, kScreenFMV, kScreenDiaryIndex,
  kScreenSettingsMenu, kScreenSaveMenu, kScreenLoadMenu, kScreenFMVMenu,
  kScreenDiaryPages, kScreenDialog
}
 

Detailed Description

Game world screen

Container for all the game world windows

Member Function Documentation

◆ open()

void Stark::GameScreen::open ( )
overridevirtual

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

Reimplemented from Stark::Screen.

◆ close()

void Stark::GameScreen::close ( )
overridevirtual

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

Reimplemented from Stark::Screen.

◆ handleGameLoop()

void Stark::GameScreen::handleGameLoop ( )
overridevirtual

Called once per game loop when the screen is active.

Reimplemented from Stark::Screen.

◆ render()

void Stark::GameScreen::render ( )
overridevirtual

Draw the screen

Implements Stark::Screen.

◆ onScreenChanged()

void Stark::GameScreen::onScreenChanged ( )
overridevirtual

Called when the screen resolution changes

Reimplemented from Stark::Screen.

◆ getInventoryWindow()

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

Get individual windows

◆ reset()

void Stark::GameScreen::reset ( )

Clear any location dependant state

◆ notifyInventoryItemEnabled()

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

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

◆ notifyDiaryEntryEnabled()

void Stark::GameScreen::notifyDiaryEntryEnabled ( )

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


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