ScummVM
Kyra::GUI Class Referenceabstract

#include <gui.h>

Inheritance diagram for Kyra::GUI:
Collaboration diagram for Kyra::GUI:

Public Member Functions

 GUI (KyraEngine_v1 *vm)
 
virtual ~GUI ()
 
virtual void processButton (Button *button)=0
 
virtual int processButtonList (Button *buttonList, uint16 inputFlags, int8 mouseWheel)=0
 
virtual void createScreenThumbnail (Graphics::Surface &dst)=0
 
void notifyUpdateSaveSlotsList ()
 

Protected Member Functions

void updateSaveFileList (Common::String targetName, bool excludeQuickSaves=false)
 
int getNextSavegameSlot ()
 
void updateSaveSlotsList (Common::String targetName, bool force=false)
 
virtual void sortSaveSlots ()
 

Protected Attributes

KyraEngine_v1_vm
 
Screen_screen
 
Common::Array< int_saveSlots
 
uint32 _lastScreenUpdate
 
char ** _savegameList
 
int _savegameListSize
 
bool _saveSlotsListUpdateNeeded
 
Common::KeyState _keyPressed
 

Detailed Description

Definition at line 99 of file gui.h.

Constructor & Destructor Documentation

◆ GUI()

Kyra::GUI::GUI ( KyraEngine_v1 vm)

Definition at line 34 of file gui.cpp.

◆ ~GUI()

Kyra::GUI::~GUI ( )
virtual

Definition at line 40 of file gui.cpp.

Member Function Documentation

◆ createScreenThumbnail()

virtual void Kyra::GUI::createScreenThumbnail ( Graphics::Surface dst)
pure virtual

◆ getNextSavegameSlot()

int Kyra::GUI::getNextSavegameSlot ( )
protected

Definition at line 74 of file gui.cpp.

◆ notifyUpdateSaveSlotsList()

void Kyra::GUI::notifyUpdateSaveSlotsList ( )
inline

Definition at line 111 of file gui.h.

◆ processButton()

virtual void Kyra::GUI::processButton ( Button button)
pure virtual

◆ processButtonList()

virtual int Kyra::GUI::processButtonList ( Button buttonList,
uint16  inputFlags,
int8  mouseWheel 
)
pure virtual

◆ sortSaveSlots()

void Kyra::GUI::sortSaveSlots ( )
protectedvirtual

Reimplemented in Kyra::GUI_LoL, and Kyra::GUI_EoB.

Definition at line 68 of file gui.cpp.

◆ updateSaveFileList()

void Kyra::GUI::updateSaveFileList ( Common::String  targetName,
bool  excludeQuickSaves = false 
)
protected

Definition at line 49 of file gui.cpp.

◆ updateSaveSlotsList()

void Kyra::GUI::updateSaveSlotsList ( Common::String  targetName,
bool  force = false 
)
protected

Definition at line 89 of file gui.cpp.

Member Data Documentation

◆ _keyPressed

Common::KeyState Kyra::GUI::_keyPressed
protected

Definition at line 132 of file gui.h.

◆ _lastScreenUpdate

uint32 Kyra::GUI::_lastScreenUpdate
protected

Definition at line 127 of file gui.h.

◆ _savegameList

char** Kyra::GUI::_savegameList
protected

Definition at line 128 of file gui.h.

◆ _savegameListSize

int Kyra::GUI::_savegameListSize
protected

Definition at line 129 of file gui.h.

◆ _saveSlots

Common::Array<int> Kyra::GUI::_saveSlots
protected

Definition at line 120 of file gui.h.

◆ _saveSlotsListUpdateNeeded

bool Kyra::GUI::_saveSlotsListUpdateNeeded
protected

Definition at line 130 of file gui.h.

◆ _screen

Screen* Kyra::GUI::_screen
protected

Definition at line 115 of file gui.h.

◆ _vm

KyraEngine_v1* Kyra::GUI::_vm
protected

Definition at line 114 of file gui.h.


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