#include <screen.h>
Public Types | |
enum | Name { kScreenMainMenu, kScreenGame, kScreenFMV, kScreenDiaryIndex, kScreenSettingsMenu, kScreenSaveMenu, kScreenLoadMenu, kScreenFMVMenu, kScreenDiaryPages, kScreenDialog } |
Public Member Functions | |
Screen (Name name) | |
Name | getName () const |
virtual void | open () |
virtual void | close () |
virtual void | render ()=0 |
virtual void | handleGameLoop () |
virtual void | onScreenChanged () |
virtual void | handleMouseMove ()=0 |
virtual void | handleClick ()=0 |
virtual void | handleRightClick ()=0 |
virtual void | handleDoubleClick ()=0 |
Screens are individual pages of the user interface
|
inline |
Obtain the name of the screen
|
inlinevirtual |
The screen is being made active, prepare it to be drawn
Reimplemented in Stark::LoadMenuScreen, Stark::SaveMenuScreen, Stark::SettingsMenuScreen, Stark::StaticLocationScreen, Stark::SaveLoadMenuScreen, Stark::GameScreen, Stark::FMVMenuScreen, Stark::DialogScreen, Stark::DiaryIndexScreen, Stark::DiaryPagesScreen, and Stark::MainMenuScreen.
|
inlinevirtual |
The screen is no longer active, release resources to free memory
Reimplemented in Stark::SettingsMenuScreen, Stark::StaticLocationScreen, Stark::SaveLoadMenuScreen, Stark::GameScreen, Stark::FMVMenuScreen, Stark::DialogScreen, and Stark::DiaryPagesScreen.
|
pure virtual |
Draw the screen
Implemented in Stark::SingleWindowScreen, and Stark::GameScreen.
|
inlinevirtual |
Called once per game loop when the screen is active.
Reimplemented in Stark::SingleWindowScreen, and Stark::GameScreen.
|
inlinevirtual |
Called when the screen resolution changes
Reimplemented in Stark::StaticLocationScreen, Stark::GameScreen, Stark::FMVMenuScreen, and Stark::DialogScreen.