OpenBarnyard
 
Loading...
Searching...
No Matches
AInputCommandArray Struct Reference

#include <AInputMapManager.h>

Public Member Functions

void Clear ()
 
void AddCommand (AInputCommand a_eCommand)
 

Public Attributes

TINT iNumCommands = 0
 
AInputCommand aCommands [MAX_NUM_COMMANDS]
 

Static Public Attributes

static constexpr TUINT MAX_NUM_COMMANDS = 40
 

Detailed Description

Definition at line 9 of file AInputMapManager.h.

Member Function Documentation

◆ AddCommand()

void AInputCommandArray::AddCommand ( AInputCommand a_eCommand)
inline

Definition at line 23 of file AInputMapManager.h.

24 {
26 {
27 aCommands[ iNumCommands++ ] = a_eCommand;
28 }
29 }
static constexpr TUINT MAX_NUM_COMMANDS
AInputCommand aCommands[MAX_NUM_COMMANDS]

◆ Clear()

void AInputCommandArray::Clear ( )
inline

Definition at line 13 of file AInputMapManager.h.

14 {
15 for ( TINT i = 0; i < iNumCommands; i++ )
16 {
18 }
19
20 iNumCommands = 0;
21 }
int TINT
Definition Typedefs.h:7
@ AInputCommand_Empty
Definition AInputMap.h:14

Member Data Documentation

◆ aCommands

AInputCommand AInputCommandArray::aCommands[MAX_NUM_COMMANDS]

Definition at line 32 of file AInputMapManager.h.

◆ iNumCommands

TINT AInputCommandArray::iNumCommands = 0

Definition at line 31 of file AInputMapManager.h.

◆ MAX_NUM_COMMANDS

TUINT AInputCommandArray::MAX_NUM_COMMANDS = 40
staticconstexpr

Definition at line 11 of file AInputMapManager.h.


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