wavelength 1.0.0
Loading...
Searching...
No Matches
WorldBeat::WorldBeatCmd Class Reference

Command that reports the event of one letter to TheTriggerMgr and schedules the next event. More...

#include <worldbeat.h>

Inheritance diagram for WorldBeat::WorldBeatCmd:
Collaboration diagram for WorldBeat::WorldBeatCmd:

Public Member Functions

 ~WorldBeatCmd () override=default
 Destroy the object.
 WorldBeatCmd (Scheduler *pScheduler, int nLengthTicks, std::vector< int > *pEvents, char cLetter)
 Construct the command of a letter.
void Execute () override
 Report the event and schedule the next one.
Public Member Functions inherited from Command
 ~Command () override
 Release the command.
virtual bool IsSerializable ()
 Report whether a recording saves the command.
virtual int GetSerialId ()
 Report the identifier a recording rebuilds the command by.
virtual void Save (BinStream &stream) const
 Write the command to a recording.
virtual void Load (BinStream &stream)
 Read the command Save() writes.
Public Member Functions inherited from Attachment
 Attachment ()
 Construct an object with no reference.
virtual ~Attachment ()
 Release the object.
void AddRef ()
 Take one reference.
void Release ()
 Give back one reference and delete the object once the last one is gone.

Additional Inherited Members

Static Public Member Functions inherited from Attachment
static void ReleaseIfSet (Attachment *pAttachment)
 Give back one reference to an object that may be null.

Detailed Description

Command that reports the event of one letter to TheTriggerMgr and schedules the next event.

The RTTI includes the nested name and records Command as the base, and the vtable is at 0x003d67c0. The constructor is expanded in the constructor of WorldBeat, and the destructor at 0x003a6458 (PAL 0x00415138) is compiler-generated. After the last event of a loop the events repeat from the first event at or after tick 0, one song length later.

Constructor & Destructor Documentation

◆ ~WorldBeatCmd()

WorldBeat::WorldBeatCmd::~WorldBeatCmd ( )
overridedefault

Destroy the object.

Ghidra address:
NTSC-U/C: 0x003a6458
Ghidra address:
PAL: 0x00415138

◆ WorldBeatCmd()

WorldBeat::WorldBeatCmd::WorldBeatCmd ( Scheduler * pScheduler,
int nLengthTicks,
std::vector< int > * pEvents,
char cLetter )

Construct the command of a letter.

Parameters
pSchedulerThe scheduler the events run on.
nLengthTicksThe length of the song in ticks.
pEventsThe ticks of the events.
cLetterThe letter.

Member Function Documentation

◆ Execute()

void WorldBeat::WorldBeatCmd::Execute ( )
overridevirtual

Report the event and schedule the next one.

Ghidra address:
NTSC-U/C: 0x003a64d0
Ghidra address:
PAL: 0x004151b0

Implements Command.


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