|
wavelength 1.0.0
|
Unit of work a Scheduler runs at a set time. More...
#include <command.h>


Public Member Functions | |
| ~Command () override | |
| Release the command. | |
| virtual void | Execute ()=0 |
| Do the work. | |
| 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. | |
Unit of work a Scheduler runs at a set time.
The RTTI includes the class name and records Attachment as the base. The class adds no member. A recorded song saves the commands that report themselves serializable, and its playback rebuilds them by their identifier.
|
override |
Release the command.
|
pure virtual |
Do the work.
Implemented in CatchTrack::DeactivateCmd, CatchTrackDisplay::UpdateDisplayCmd, CatchTrackMusic::PlayBarCmd, ForceFeedbackMgr::BeatCmd, ForceFeedbackMgr::MotorEffect::OffCmd, GemCatcher::CatchCheckCmd, MemFun1Command< Function, Object, Argument >, MemFun2Command< Function, Object, Argument1, Argument2 >, MemFun3Command< Function, Object, Argument1, Argument2, Argument3 >, MemFun3Command< Result(Owner::*)(Parameter1, Parameter2, Parameter3, int), Object, Argument1, Argument2, Argument3 >, MemFun4Command< Function, Object, Argument1, Argument2, Argument3, Argument4 >, MemFunCommand< Function, Object >, MemFunCommand< Result(Owner::*)(float), Object >, MultiMuse::MultiMuseCmd, MuseLooper::RepeatCmd, NoteMuseBase::NoteCommand, PlayScriptCmd, SoloGameLogic::CheckpointTextCmd, StdMidiMuse::StdMidiCommand, TrackCapturer::SetCaptureStartCmd, and WorldBeat::WorldBeatCmd.
|
inlinevirtual |
Report whether a recording saves the command.
The name is inferred.
Reimplemented in SerializableCommand< kId, T >.
|
inlinevirtual |
Report the identifier a recording rebuilds the command by.
The name is inferred.
Reimplemented in SerializableCommand< kId, T >.
|
inlinevirtual |
Write the command to a recording.
The default writes nothing.
| stream | The stream to write to. |
|
inlinevirtual |
Read the command Save() writes.
The default reads nothing.
| stream | The stream to read from. |