Skip to content

Command ​

cpp
#include <Infrastructure/CmdQueueTypes.h>
cpp
struct Command

Defined in Infrastructure/CmdQueueTypes.h:313

A command that is fed into the command queue.

Public Attributes ​

ReturnNameDescription
CmdtypeType of the command.
void *senderSender of the command (optional).
const char *strAttached string (may be null).

type ​

cpp
Cmd type

Type: Cmd

Defined in Infrastructure/CmdQueueTypes.h:316

Type of the command.


sender ​

cpp
void * sender

Defined in Infrastructure/CmdQueueTypes.h:319

Sender of the command (optional).


str ​

cpp
const char * str = nullptr

Defined in Infrastructure/CmdQueueTypes.h:339

Attached string (may be null).

Public Methods ​

ReturnNameDescription
Command inlineCreates an empty command.
Command inlineCreates a command with two integer values.
Command inlineCreates a command with a sender.
Command inlineCreates a command with an alarm payload.
Command inlineCreates a command with a configuration payload.
Command inlineCreates a command with a coordinate payload.
Command inlineCreates a command with a joystick payload.
Command inlineCreates a command with a guard payload.
Command inlineCreates a command with a joystick state payload.
Command inlineCreates a command with a keyboard payload.
Command inlineCreates a command with a tape payload.

Command ​

inline

cpp
inline Command()

Defined in Infrastructure/CmdQueueTypes.h:342

Creates an empty command.


Command ​

inline

cpp
inline Command(Cmd type, i64 v1 = 0, i64 v2 = 0)

Defined in Infrastructure/CmdQueueTypes.h:344

Creates a command with two integer values.


Command ​

inline

cpp
inline Command(Cmd type, void * s, i64 v1 = 0, i64 v2 = 0)

Defined in Infrastructure/CmdQueueTypes.h:346

Creates a command with a sender.


Command ​

inline

cpp
inline Command(Cmd type, const AlarmCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:348

Creates a command with an alarm payload.


Command ​

inline

cpp
inline Command(Cmd type, const ConfigCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:350

Creates a command with a configuration payload.


Command ​

inline

cpp
inline Command(Cmd type, const CoordCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:352

Creates a command with a coordinate payload.


Command ​

inline

cpp
inline Command(Cmd type, const GamePadCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:354

Creates a command with a joystick payload.


Command ​

inline

cpp
inline Command(Cmd type, const GuardCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:356

Creates a command with a guard payload.


Command ​

inline

cpp
inline Command(Cmd type, const JoyStateCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:358

Creates a command with a joystick state payload.


Command ​

inline

cpp
inline Command(Cmd type, const KeyCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:360

Creates a command with a keyboard payload.


Command ​

inline

cpp
inline Command(Cmd type, const TapeCmd & cmd)

Defined in Infrastructure/CmdQueueTypes.h:362

Creates a command with a tape payload.