Appearance
Command
cpp
#include <Infrastructure/CmdQueueTypes.h>cpp
struct CommandDefined in Infrastructure/CmdQueueTypes.h:313
A command that is fed into the command queue.
Public Attributes
| Return | Name | Description |
|---|---|---|
Cmd | type | Type of the command. |
void * | sender | Sender of the command (optional). |
const char * | str | Attached string (may be null). |
type
cpp
Cmd typeType: Cmd
Defined in Infrastructure/CmdQueueTypes.h:316
Type of the command.
sender
cpp
void * senderDefined in Infrastructure/CmdQueueTypes.h:319
Sender of the command (optional).
str
cpp
const char * str = nullptrDefined in Infrastructure/CmdQueueTypes.h:339
Attached string (may be null).
Public Methods
| Return | Name | Description |
|---|---|---|
Command inline | Creates an empty command. | |
Command inline | Creates a command with two integer values. | |
Command inline | Creates a command with a sender. | |
Command inline | Creates a command with an alarm payload. | |
Command inline | Creates a command with a configuration payload. | |
Command inline | Creates a command with a coordinate payload. | |
Command inline | Creates a command with a joystick payload. | |
Command inline | Creates a command with a guard payload. | |
Command inline | Creates a command with a joystick state payload. | |
Command inline | Creates a command with a keyboard payload. | |
Command inline | Creates 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.