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

The base class of the save and load menu of the game. More...

#include <saveloadmenu.h>

Inheritance diagram for Stark::SaveLoadMenuScreen:
Collaboration diagram for Stark::SaveLoadMenuScreen:

List of all members.

Public Member Functions

 SaveLoadMenuScreen (Gfx::Driver *gfx, Cursor *cursor, Screen::Name screenName)
virtual ~SaveLoadMenuScreen ()
void open () override
void close () override
virtual void onWidgetSelected (SaveDataWidget *widget)=0
 Called when a SaveDataWidget is selected.
virtual bool isSaveMenu ()=0
 Check whether the menu is used for saving.

Static Public Attributes

static const int _slotPerRow = 3
static const int _slotPerColumn = 3
static const int _slotPerPage = 9

Protected Types

enum  WidgetIndex { kWidgetSaveText = 3, kWidgetLoadText = 4, kWidgetBack = 5, kWidgetNext = 6 }

Static Protected Member Functions

static void checkError (Common::Error error)

Private Member Functions

void backHandler ()
void prevPageHandler ()
void nextPageHandler ()
void removeSaveDataWidgets ()
void loadSaveData (int page)
void changePage (int page)
int computeMaxPage ()

Private Attributes

int _page
int _maxPage

Detailed Description

The base class of the save and load menu of the game.

Definition at line 44 of file saveloadmenu.h.


Member Enumeration Documentation

Enumerator:
kWidgetSaveText 
kWidgetLoadText 
kWidgetBack 
kWidgetNext 

Definition at line 66 of file saveloadmenu.h.


Constructor & Destructor Documentation

Stark::SaveLoadMenuScreen::SaveLoadMenuScreen ( Gfx::Driver gfx,
Cursor cursor,
Screen::Name  screenName 
)

Definition at line 52 of file saveloadmenu.cpp.

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

Definition at line 58 of file saveloadmenu.cpp.


Member Function Documentation

void Stark::SaveLoadMenuScreen::backHandler (  )  [private]

Definition at line 144 of file saveloadmenu.cpp.

void Stark::SaveLoadMenuScreen::changePage ( int  page  )  [private]

Definition at line 170 of file saveloadmenu.cpp.

void Stark::SaveLoadMenuScreen::checkError ( Common::Error  error  )  [static, protected]

Definition at line 148 of file saveloadmenu.cpp.

void Stark::SaveLoadMenuScreen::close (  )  [override]

Reimplemented from Stark::StaticLocationScreen.

Definition at line 117 of file saveloadmenu.cpp.

int Stark::SaveLoadMenuScreen::computeMaxPage (  )  [private]

Definition at line 122 of file saveloadmenu.cpp.

virtual bool Stark::SaveLoadMenuScreen::isSaveMenu (  )  [pure virtual]

Check whether the menu is used for saving.

Implemented in Stark::SaveMenuScreen, and Stark::LoadMenuScreen.

void Stark::SaveLoadMenuScreen::loadSaveData ( int  page  )  [private]

Definition at line 164 of file saveloadmenu.cpp.

void Stark::SaveLoadMenuScreen::nextPageHandler (  )  [inline, private]

Definition at line 81 of file saveloadmenu.h.

virtual void Stark::SaveLoadMenuScreen::onWidgetSelected ( SaveDataWidget widget  )  [pure virtual]

Called when a SaveDataWidget is selected.

Implemented in Stark::SaveMenuScreen, and Stark::LoadMenuScreen.

void Stark::SaveLoadMenuScreen::open (  )  [override]

Reimplemented from Stark::StaticLocationScreen.

Reimplemented in Stark::SaveMenuScreen, and Stark::LoadMenuScreen.

Definition at line 61 of file saveloadmenu.cpp.

void Stark::SaveLoadMenuScreen::prevPageHandler (  )  [inline, private]

Definition at line 80 of file saveloadmenu.h.

void Stark::SaveLoadMenuScreen::removeSaveDataWidgets (  )  [private]

Definition at line 155 of file saveloadmenu.cpp.


Member Data Documentation

Definition at line 76 of file saveloadmenu.h.

Definition at line 75 of file saveloadmenu.h.

Definition at line 47 of file saveloadmenu.h.

Definition at line 48 of file saveloadmenu.h.

Definition at line 46 of file saveloadmenu.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