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)

Private Attributes

int _page

Static Private Attributes

static const int _maxPage = 10

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 56 of file saveloadmenu.cpp.


Member Function Documentation

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

Definition at line 115 of file saveloadmenu.cpp.

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

Definition at line 141 of file saveloadmenu.cpp.

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

Definition at line 119 of file saveloadmenu.cpp.

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

Reimplemented from Stark::StaticLocationScreen.

Definition at line 110 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 135 of file saveloadmenu.cpp.

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

Definition at line 82 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 59 of file saveloadmenu.cpp.

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

Definition at line 81 of file saveloadmenu.h.

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

Definition at line 126 of file saveloadmenu.cpp.


Member Data Documentation

const int Stark::SaveLoadMenuScreen::_maxPage = 10 [static, private]

Definition at line 75 of file saveloadmenu.h.

Definition at line 77 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 May 18 2019 05:07:20 for ResidualVM by doxygen 1.7.1
curved edge   curved edge