Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
aurore::Action Class Reference

#include <aurore/core/actions.hpp>

Inheritance diagram for aurore::Action:
aurore::GamepadAction aurore::KeyboardAction

Public Member Functions

 Action (const int button, const ActionIdentifier identifier, const std::string &hintText, const bool available, const bool hidden, const bool allowRepeating, const Sound sound, const ActionListener &actionListener)
 
virtual ~Action ()=default
 
virtual bool operator== (const ControllerButton other) const
 
virtual bool operator== (const AuroreKeyCode other) const
 
ActionIdentifier getIdentifier () const
 
ActionType getType () const
 
int getButton () const
 
std::string getHintText () const
 
void setHintText (const std::string &hintText)
 
bool isAvailable () const
 
void setAvailable (const bool isAvailable)
 
bool isHidden () const
 
void setHidden (const bool hidden)
 
bool isAllowRepeating () const
 
Sound getSound () const
 
ActionListener getActionListener () const
 

Protected Attributes

ActionType type {}
 
int button {}
 
ActionIdentifier identifier {}
 
std::string hintText {}
 
bool available {}
 
bool hidden {}
 
bool allowRepeating {}
 
Sound sound {}
 
ActionListener actionListener {}
 

Constructor & Destructor Documentation

◆ Action()

aurore::Action::Action ( const int  button,
const ActionIdentifier  identifier,
const std::string &  hintText,
const bool  available,
const bool  hidden,
const bool  allowRepeating,
const Sound  sound,
const ActionListener &  actionListener 
)
inline

◆ ~Action()

virtual aurore::Action::~Action ( )
virtualdefault

Member Function Documentation

◆ getActionListener()

ActionListener aurore::Action::getActionListener ( ) const
inline

◆ getButton()

int aurore::Action::getButton ( ) const
inline

◆ getHintText()

std::string aurore::Action::getHintText ( ) const
inline

◆ getIdentifier()

ActionIdentifier aurore::Action::getIdentifier ( ) const
inline

◆ getSound()

Sound aurore::Action::getSound ( ) const
inline

◆ getType()

ActionType aurore::Action::getType ( ) const
inline

◆ isAllowRepeating()

bool aurore::Action::isAllowRepeating ( ) const
inline

◆ isAvailable()

bool aurore::Action::isAvailable ( ) const
inline

◆ isHidden()

bool aurore::Action::isHidden ( ) const
inline

◆ operator==() [1/2]

virtual bool aurore::Action::operator== ( const AuroreKeyCode  other) const
inlinevirtual

◆ operator==() [2/2]

virtual bool aurore::Action::operator== ( const ControllerButton  other) const
inlinevirtual

◆ setAvailable()

void aurore::Action::setAvailable ( const bool  isAvailable)
inline

◆ setHidden()

void aurore::Action::setHidden ( const bool  hidden)
inline

◆ setHintText()

void aurore::Action::setHintText ( const std::string &  hintText)
inline

Member Data Documentation

◆ actionListener

ActionListener aurore::Action::actionListener {}
protected

◆ allowRepeating

bool aurore::Action::allowRepeating {}
protected

◆ available

bool aurore::Action::available {}
protected

◆ button

int aurore::Action::button {}
protected

◆ hidden

bool aurore::Action::hidden {}
protected

◆ hintText

std::string aurore::Action::hintText {}
protected

◆ identifier

ActionIdentifier aurore::Action::identifier {}
protected

◆ sound

Sound aurore::Action::sound {}
protected

◆ type

ActionType aurore::Action::type {}
protected

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