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

#include <Actions.h>

Collaboration diagram for GUI::Actions:

List of all members.

Public Member Functions

virtual void initInstanceMain (OSystem *mainSystem)
virtual void initInstanceGame ()
bool initialized ()
virtual bool perform (ActionType action, bool pushed=true)=0
bool isActive (ActionType action)
bool isEnabled (ActionType action)
virtual Common::String actionName (ActionType action)=0
virtual int size ()=0
void beginMapping (bool start)
bool mappingActive ()
bool performMapped (unsigned int keyCode, bool pushed)
bool loadMapping ()
bool saveMapping ()
unsigned int getMapping (ActionType action)
void setMapping (ActionType action, unsigned int keyCode)
KeygetKeyAction (ActionType action)
virtual Common::String domain ()=0
virtual int version ()=0
virtual ~Actions ()

Static Public Member Functions

static ActionsInstance ()
static void init ()

Protected Types

enum  { MAX_ACTIONS = 20 }

Protected Member Functions

 Actions ()

Protected Attributes

OSystem_mainSystem
Key _key_action [MAX_ACTIONS+1]
bool _action_enabled [MAX_ACTIONS+1]
unsigned int _action_mapping [MAX_ACTIONS+1]
bool _mapping_active
bool _initialized

Static Protected Attributes

static Actions_instance = NULL

Detailed Description

Definition at line 34 of file Actions.h.


Member Enumeration Documentation

anonymous enum [protected]
Enumerator:
MAX_ACTIONS 

Definition at line 70 of file Actions.h.


Constructor & Destructor Documentation

GUI::Actions::~Actions (  )  [virtual]

Definition at line 46 of file Actions.cpp.

GUI::Actions::Actions (  )  [protected]

Definition at line 41 of file Actions.cpp.


Member Function Documentation

virtual Common::String GUI::Actions::actionName ( ActionType  action  )  [pure virtual]
void GUI::Actions::beginMapping ( bool  start  ) 

Definition at line 83 of file Actions.cpp.

virtual Common::String GUI::Actions::domain (  )  [pure virtual]
Key & GUI::Actions::getKeyAction ( ActionType  action  ) 

Definition at line 155 of file Actions.cpp.

unsigned int GUI::Actions::getMapping ( ActionType  action  ) 

Definition at line 139 of file Actions.cpp.

void GUI::Actions::init (  )  [static]

Definition at line 50 of file Actions.cpp.

bool GUI::Actions::initialized (  ) 

Definition at line 71 of file Actions.cpp.

void GUI::Actions::initInstanceGame (  )  [virtual]

Definition at line 66 of file Actions.cpp.

void GUI::Actions::initInstanceMain ( OSystem mainSystem  )  [virtual]

Definition at line 62 of file Actions.cpp.

Actions * GUI::Actions::Instance (  )  [static]

Definition at line 37 of file Actions.cpp.

bool GUI::Actions::isActive ( ActionType  action  ) 

Definition at line 75 of file Actions.cpp.

bool GUI::Actions::isEnabled ( ActionType  action  ) 

Definition at line 79 of file Actions.cpp.

bool GUI::Actions::loadMapping (  ) 

Definition at line 102 of file Actions.cpp.

bool GUI::Actions::mappingActive (  ) 

Definition at line 87 of file Actions.cpp.

virtual bool GUI::Actions::perform ( ActionType  action,
bool  pushed = true 
) [pure virtual]
bool GUI::Actions::performMapped ( unsigned int  keyCode,
bool  pushed 
)

Definition at line 91 of file Actions.cpp.

bool GUI::Actions::saveMapping (  ) 

Definition at line 124 of file Actions.cpp.

void GUI::Actions::setMapping ( ActionType  action,
unsigned int  keyCode 
)

Definition at line 144 of file Actions.cpp.

virtual int GUI::Actions::size (  )  [pure virtual]
virtual int GUI::Actions::version (  )  [pure virtual]

Member Data Documentation

bool GUI::Actions::_action_enabled[MAX_ACTIONS+1] [protected]

Definition at line 77 of file Actions.h.

unsigned int GUI::Actions::_action_mapping[MAX_ACTIONS+1] [protected]

Definition at line 78 of file Actions.h.

bool GUI::Actions::_initialized [protected]

Definition at line 80 of file Actions.h.

Actions * GUI::Actions::_instance = NULL [static, protected]

Definition at line 74 of file Actions.h.

Key GUI::Actions::_key_action[MAX_ACTIONS+1] [protected]

Definition at line 76 of file Actions.h.

Definition at line 75 of file Actions.h.

Definition at line 79 of file Actions.h.


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


Generated on Sat Jul 20 2019 05:03:05 for ResidualVM by doxygen 1.7.1
curved edge   curved edge