resonance 1.0.1
Loading...
Searching...
No Matches
DoGameSystemPlayCmd Class Reference

Scheduler command that starts a play of the game system. More...

#include <dogamesystemplaycmd.h>

Inheritance diagram for DoGameSystemPlayCmd:
Collaboration diagram for DoGameSystemPlayCmd:

Public Member Functions

virtual int CmdID ()
 Report sCmdID.
virtual void Execute ()
 Run GameManagerImpl::StartPlay() on the application's game manager.
virtual void Print (std::ostream &stream)
 Write {DoGameSystemPlayCmd}.
virtual void saveGuts (OBStream &stream) const
 Write nothing.
virtual void restoreGuts (IBStream &stream)
 Read nothing.
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 Member Functions

static Sch::Command * New ()
 Produce a command on the heap.
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.

Static Public Attributes

static int sCmdID
 Identifier the class streams itself under.

Additional Inherited Members

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

Detailed Description

Scheduler command that starts a play of the game system.

DoGameSystemPlayCmd is one of the five ordinary Sch::Command subclasses. Its table is at 0x007cd520 with eight entries, and it overrides saveGuts() and restoreGuts() with empty bodies of its own. It has no payload, and the object is the 0x0c-byte base. The static initialiser at 0x0010b530 registers New() under identifier 4 with the factory registrar.

The destructor at 0x0010bd08 is implicitly declared.

Member Function Documentation

◆ New()

Sch::Command * DoGameSystemPlayCmd::New ( )
static

Produce a command on the heap.

Returns
The command.
Ghidra address:
NTSC-U/C: 0x00105e40
Ghidra address:
PAL: 0x00105e40

◆ CmdID()

virtual int DoGameSystemPlayCmd::CmdID ( )
virtual

Report sCmdID.

Returns
The class's command identifier.
Ghidra address:
NTSC-U/C: 0x0010bdb8
Ghidra address:
PAL: 0x0010bf50

Implements Sch::Command.

◆ Execute()

virtual void DoGameSystemPlayCmd::Execute ( )
virtual

Run GameManagerImpl::StartPlay() on the application's game manager.

Ghidra address:
NTSC-U/C: 0x0010bd80
Ghidra address:
PAL: 0x0010bf18

Implements Sch::Command.

◆ Print()

virtual void DoGameSystemPlayCmd::Print ( std::ostream & stream)
virtual

Write {DoGameSystemPlayCmd}.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0010bdd8
Ghidra address:
PAL: 0x0010bf70

Reimplemented from Sch::Command.

◆ saveGuts()

virtual void DoGameSystemPlayCmd::saveGuts ( OBStream & stream) const
virtual

Write nothing.

Parameters
streamThe stream to write to.
Ghidra address:
NTSC-U/C: 0x0010bdc8
Ghidra address:
PAL: 0x0010bf60

Reimplemented from Sch::Command.

◆ restoreGuts()

virtual void DoGameSystemPlayCmd::restoreGuts ( IBStream & stream)
virtual

Read nothing.

Parameters
streamThe stream to read from.
Ghidra address:
NTSC-U/C: 0x0010bdd0
Ghidra address:
PAL: 0x0010bf68

Reimplemented from Sch::Command.

Member Data Documentation

◆ sCmdID

int DoGameSystemPlayCmd::sCmdID
static

Identifier the class streams itself under.

The word at 0x006682b8 starts as 4.

Ghidra address:
NTSC-U/C: 0x006682b8
Ghidra address:
PAL: 0x006a8e38

The documentation for this class was generated from the following file: