|
resonance 1.0.1
|
Scheduler command that replays one controller reading into the game world. More...
#include <controllercmd.h>


Public Member Functions | |
| ControllerCmd () | |
| Start with the reading unset. | |
| ControllerCmd (const MetControllerReading &reading) | |
| Record one controller reading to replay. | |
| virtual int | CmdID () |
| Report the identifier this class streams itself under. | |
| virtual void | Execute () |
| Hand the reading to the world of the running game. | |
| virtual void | Print (std::ostream &stream) |
| Write {ControllerCmd} to a diagnostic stream. | |
| virtual void | saveGuts (OBStream &stream) const |
| Write the reading between the tags CM[ and ]CM. | |
| virtual void | restoreGuts (IBStream &stream) |
| Read the reading back, discarding the three tag bytes on each side. | |
| Public Member Functions inherited from Sch::Command | |
| Command () | |
| Construct a command that the scheduler has not queued. | |
| virtual | ~Command () |
| Release the command. | |
| Public Member Functions inherited from Attachment | |
| Attachment () | |
| virtual | ~Attachment () |
| int | Release () |
| Give back one reference and destroy the object once the last one is gone. | |
| virtual void | Destroy () |
| Destroy the object. | |
Static Public Attributes | |
| static int | sCmdID |
| Identifier the class streams itself under. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from Sch::Command | |
| static Command * | NewCommand (int nCmdID) |
| Produce a command of the identified class through the factory list. | |
| Static Public Member Functions inherited from Attachment | |
| static void | ReleaseIfSet (Attachment *pAttachment) |
| Give back one reference to an object that may be null. | |
| Public Attributes inherited from Sch::Command | |
| int | mQueued |
| Non-zero while the command sits in the scheduler's queue. | |
| Public Attributes inherited from Attachment | |
| int | mRefs |
Scheduler command that replays one controller reading into the game world.
It has Sch::Command as its one base. Its vtable at 0x007dc3c0 runs eight entries and overrides every slot the base declares apart from Attachment::Destroy(). The allocation at 0x0018be70 measures the object at 0x1c bytes, the 0x0c-byte base followed by one sixteen-byte reading.
The static member sCmdID is attested by the RTTI, which records it as the first global of the translation unit in the anonymous-namespace markers of ExitCmd and FuncCmd. Those two classes share the unit with this one and with GrooveWorld, whose routines create all three.
saveGuts() frames the reading between the tags CM[ and ]CM, one byte per character, and restoreGuts() reads six bytes around the reading without checking them.
The destructor at 0x001944e8 is implicitly declared. It stores the base table pointer and runs Attachment's destructor, which is what the compiler generates.
The member is private. Only this class's routines address it.
|
inline |
Start with the reading unset.
Inline. NewControllerCmd() expands it for restoreGuts() to fill.
|
inlineexplicit |
Record one controller reading to replay.
Inline, with no address of its own. GrooveWorld::OnControllerReading() expands it when it queues a reading.
| reading | The reading. |
|
virtual |
Report the identifier this class streams itself under.
Implements Sch::Command.
|
virtual |
Hand the reading to the world of the running game.
Implements Sch::Command.
|
virtual |
Write {ControllerCmd} to a diagnostic stream.
| stream | The stream to write to. |
Reimplemented from Sch::Command.
|
virtual |
Write the reading between the tags CM[ and ]CM.
| stream | The stream to write to. |
Reimplemented from Sch::Command.
|
virtual |
Read the reading back, discarding the three tag bytes on each side.
| stream | The stream to read from. |
Reimplemented from Sch::Command.
|
static |
Identifier the class streams itself under.
The word at 0x0067f238 starts as 2.