Scheduler command that runs a local player's per-bar update.
More...
#include <localplayercmd.h>
|
| static int | sCmdID |
| | The class's command identifier, which the image initialises to zero.
|
|
| 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 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.
|
| int | mRefs |
Scheduler command that runs a local player's per-bar update.
LocalPlayerCmd is one of the five ordinary Sch::Command subclasses. Its table is at 0x007cff18 with eight entries, and it overrides saveGuts() and restoreGuts() with empty bodies of its own. LocalPlayer allocates the 0x14-byte object with the untagged allocator and expands the constructor, in LocalPlayer::AnnounceState() for the first bar and in LocalPlayer::OnBarTick() for every bar after.
◆ LocalPlayerCmd()
| LocalPlayerCmd::LocalPlayerCmd |
( |
LocalPlayer * | pPlayer, |
|
|
int | nTick ) |
|
inline |
Prepare the update of one bar.
- Parameters
-
| pPlayer | The player to update. |
| nTick | The song position the command runs at. |
◆ ~LocalPlayerCmd()
| virtual LocalPlayerCmd::~LocalPlayerCmd |
( |
| ) |
|
|
virtual |
- Ghidra address:
- NTSC-U/C: 0x001227a8
- Ghidra address:
- PAL: 0x00122dc0
◆ CmdID()
| virtual int LocalPlayerCmd::CmdID |
( |
| ) |
|
|
virtual |
Report sCmdID.
- Returns
- The class's command identifier.
- Ghidra address:
- NTSC-U/C: 0x00122840
- Ghidra address:
- PAL: 0x00122e58
Implements Sch::Command.
◆ Execute()
| virtual void LocalPlayerCmd::Execute |
( |
| ) |
|
|
virtual |
◆ Print()
| virtual void LocalPlayerCmd::Print |
( |
std::ostream & | stream | ) |
|
|
virtual |
Write {LocalPlayerCmd}.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00122860
- Ghidra address:
- PAL: 0x00122e78
Reimplemented from Sch::Command.
◆ saveGuts()
| virtual void LocalPlayerCmd::saveGuts |
( |
OBStream & | stream | ) |
const |
|
virtual |
Write nothing.
- Parameters
-
| stream | The stream to write to. |
- Ghidra address:
- NTSC-U/C: 0x00122850
- Ghidra address:
- PAL: 0x00122e68
Reimplemented from Sch::Command.
◆ restoreGuts()
| virtual void LocalPlayerCmd::restoreGuts |
( |
IBStream & | stream | ) |
|
|
virtual |
Read nothing.
- Parameters
-
| stream | The stream to read from. |
- Ghidra address:
- NTSC-U/C: 0x00122858
- Ghidra address:
- PAL: 0x00122e70
Reimplemented from Sch::Command.
◆ sCmdID
| int LocalPlayerCmd::sCmdID |
|
static |
The class's command identifier, which the image initialises to zero.
- Ghidra address:
- NTSC-U/C: 0x0066c508
- Ghidra address:
- PAL: 0x006ad0d0
The documentation for this class was generated from the following file: