Appearance
Command
cpp
#include <Infrastructure/CmdQueueTypes.h>cpp
struct CommandDefined in Infrastructure/CmdQueueTypes.h:270
A command sent to the emulator thread.
Public Attributes
| Return | Name | Description |
|---|---|---|
Cmd | type | Header. |
void * | sender | Sender. |
const char * | str | Attached string (may be null). |
type
cpp
Cmd typeType: Cmd
Defined in Infrastructure/CmdQueueTypes.h:273
Header.
sender
cpp
void * senderDefined in Infrastructure/CmdQueueTypes.h:276
Sender.
str
cpp
const char * str = nullptrDefined in Infrastructure/CmdQueueTypes.h:295
Attached string (may be null).
Public Methods
| Return | Name | Description |
|---|---|---|
Command inline | Creates a command with up to two integer payload values. | |
Command inline | Creates a command with a sender and up to two integer payload values. | |
Command inline | Creates a command that changes a configuration option. | |
Command inline | Creates a command that carries a key event. | |
Command inline | Creates a command that carries a game pad action. | |
Command inline | Creates a command that carries a coordinate. | |
Command inline | Creates a command that schedules an alarm. | |
Command inline | Creates a command that changes a guard. | |
Command inline | Creates a command that carries a joystick state. |
Command
inline
cpp
inline Command(Cmd type, i64 v1 = 0, i64 v2 = 0)Defined in Infrastructure/CmdQueueTypes.h:299
Creates a command with up to two integer payload values.
Command
inline
cpp
inline Command(Cmd type, void * s, i64 v1 = 0, i64 v2 = 0)Defined in Infrastructure/CmdQueueTypes.h:301
Creates a command with a sender and up to two integer payload values.
Command
inline
cpp
inline Command(Cmd type, const ConfigCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:303
Creates a command that changes a configuration option.
Command
inline
cpp
inline Command(Cmd type, const KeyCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:305
Creates a command that carries a key event.
Command
inline
cpp
inline Command(Cmd type, const GamePadCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:307
Creates a command that carries a game pad action.
Command
inline
cpp
inline Command(Cmd type, const CoordCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:309
Creates a command that carries a coordinate.
Command
inline
cpp
inline Command(Cmd type, const AlarmCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:311
Creates a command that schedules an alarm.
Command
inline
cpp
inline Command(Cmd type, const GuardCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:313
Creates a command that changes a guard.
Command
inline
cpp
inline Command(Cmd type, const JoyStateCmd & cmd)Defined in Infrastructure/CmdQueueTypes.h:315
Creates a command that carries a joystick state.