Olympe Engine 2.0
2D Game Engine with ECS Architecture
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
ActionMap Class Reference

#include <InputDevice.h>

Public Member Functions

 ActionMap ()=default
 
 ActionMap (const std::string &name, ActionMapContext ctx, int prio=0)
 
void AddAction (const std::string &actionName)
 
bool ContainsAction (const std::string &actionName) const
 

Public Attributes

std::string mapName
 
ActionMapContext context = ActionMapContext::Gameplay
 
int priority = 0
 
bool exclusive = false
 
bool enabledByDefault = true
 
std::string description
 
std::vector< std::string > actions
 

Detailed Description

Definition at line 146 of file InputDevice.h.

Constructor & Destructor Documentation

◆ ActionMap() [1/2]

ActionMap::ActionMap ( )
default

◆ ActionMap() [2/2]

ActionMap::ActionMap ( const std::string &  name,
ActionMapContext  ctx,
int  prio = 0 
)
inline

Definition at line 149 of file InputDevice.h.

Member Function Documentation

◆ AddAction()

void ActionMap::AddAction ( const std::string &  actionName)
inline

Definition at line 161 of file InputDevice.h.

References actions, and GetComponentTypeID_Static().

+ Here is the call graph for this function:

◆ ContainsAction()

bool ActionMap::ContainsAction ( const std::string &  actionName) const
inline

Definition at line 165 of file InputDevice.h.

References actions, and GetComponentTypeID_Static().

+ Here is the call graph for this function:

Member Data Documentation

◆ actions

std::vector<std::string> ActionMap::actions

Definition at line 159 of file InputDevice.h.

Referenced by AddAction(), and ContainsAction().

◆ context

Definition at line 153 of file InputDevice.h.

◆ description

std::string ActionMap::description

Definition at line 157 of file InputDevice.h.

◆ enabledByDefault

bool ActionMap::enabledByDefault = true

Definition at line 156 of file InputDevice.h.

◆ exclusive

bool ActionMap::exclusive = false

Definition at line 155 of file InputDevice.h.

◆ mapName

std::string ActionMap::mapName

Definition at line 152 of file InputDevice.h.

◆ priority

int ActionMap::priority = 0

Definition at line 154 of file InputDevice.h.


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