ScummVM API documentation
Stark::SaveLoadMenuScreen Class Referenceabstract

#include <saveloadmenu.h>

Inheritance diagram for Stark::SaveLoadMenuScreen:
Stark::StaticLocationScreen Stark::SingleWindowScreen Stark::Screen Stark::Window Stark::LoadMenuScreen Stark::SaveMenuScreen

Public Member Functions

 SaveLoadMenuScreen (Gfx::Driver *gfx, Cursor *cursor, Screen::Name screenName)
 
void open () override
 
void close () override
 
virtual void onWidgetSelected (SaveDataWidget *widget)=0
 
virtual bool isSaveMenu ()=0
 
- Public Member Functions inherited from Stark::StaticLocationScreen
 StaticLocationScreen (Gfx::Driver *gfx, Cursor *cursor, const char *locationName, Screen::Name screenName)
 
void onScreenChanged () override
 
void waitForSoundsToComplete ()
 
- Public Member Functions inherited from Stark::SingleWindowScreen
 SingleWindowScreen (Name name, Gfx::Driver *gfx, Cursor *cursor)
 
void handleGameLoop () override
 
void render () override
 
void handleMouseMove () override
 
void handleClick () override
 
void handleRightClick () override
 
void handleDoubleClick () override
 
- Public Member Functions inherited from Stark::Screen
 Screen (Name name)
 
Name getName () const
 
- Public Member Functions inherited from Stark::Window
 Window (Gfx::Driver *gfx, Cursor *cursor)
 
void handleMouseMove ()
 
void handleClick ()
 
void handleRightClick ()
 
void handleDoubleClick ()
 
void handleGameLoop ()
 
void render ()
 
bool isMouseInside () const
 
bool isVisible () const
 
Graphics::SurfacegetScreenshot () const
 

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)
 

Additional Inherited Members

- Public Types inherited from Stark::Screen
enum  Name {
  kScreenMainMenu, kScreenGame, kScreenFMV, kScreenDiaryIndex,
  kScreenSettingsMenu, kScreenSaveMenu, kScreenLoadMenu, kScreenFMVMenu,
  kScreenDiaryPages, kScreenDialog
}
 
- Protected Member Functions inherited from Stark::StaticLocationScreen
void onMouseMove (const Common::Point &pos) override
 
void onClick (const Common::Point &pos) override
 
void onGameLoop () override
 
void onRender () override
 
- Protected Member Functions inherited from Stark::Window
virtual void onRightClick (const Common::Point &pos)
 
virtual void onDoubleClick (const Common::Point &pos)
 
Common::Point getRelativeMousePosition () const
 
- Protected Attributes inherited from Stark::StaticLocationScreen
Common::Array< StaticLocationWidget * > _widgets
 
- Protected Attributes inherited from Stark::Window
Gfx::Driver_gfx
 
Cursor_cursor
 
Common::Rect _position
 
bool _visible
 

Detailed Description

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

Member Function Documentation

◆ open()

void Stark::SaveLoadMenuScreen::open ( )
overridevirtual

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

Reimplemented from Stark::StaticLocationScreen.

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

◆ close()

void Stark::SaveLoadMenuScreen::close ( )
overridevirtual

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

Reimplemented from Stark::StaticLocationScreen.

◆ onWidgetSelected()

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

Called when a SaveDataWidget is selected

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

◆ isSaveMenu()

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

Check whether the menu is used for saving

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


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