Command that runs the commands of a track named "SCRIPT" of the MIDI file, each at its tick.
More...
#include <playscriptcmd.h>
Command that runs the commands of a track named "SCRIPT" of the MIDI file, each at its tick.
The RTTI includes the class name and records Command as the base. The command posts itself on the song scheduler at the tick of each command in turn. Once the last command ran, the task waiting on the track is told the track is done. TutorialGameLogic builds the command inline, and the members are defined in the class.
◆ PlayScriptCmd()
| PlayScriptCmd::PlayScriptCmd |
( |
ScriptTrackData * | pTrack, |
|
|
float * | pTickDuration ) |
|
inline |
Construct a command at the first command of a track.
- Parameters
-
| pTrack | The commands. |
| pTickDuration | The duration of one song tick. The command does not read it. |
◆ ~PlayScriptCmd()
| PlayScriptCmd::~PlayScriptCmd |
( |
| ) |
|
|
inlineoverride |
Release the command.
- Ghidra address:
- NTSC-U/C: 0x00343ce8
- Ghidra address:
- PAL: 0x003b1220
◆ Execute()
| void PlayScriptCmd::Execute |
( |
| ) |
|
|
inlineoverridevirtual |
Run the next command of the track and post the one after it.
- Ghidra address:
- NTSC-U/C: 0x00343d60
- Ghidra address:
- PAL: 0x003b1298
Implements Command.
◆ ScheduleNext()
| void PlayScriptCmd::ScheduleNext |
( |
| ) |
|
|
inline |
Post the command at the tick of the next command of the track, or report the end of the track to the waiting task.
The name is inferred.
- Ghidra address:
- NTSC-U/C: 0x00343da8
- Ghidra address:
- PAL: 0x003b12e0
◆ GetStartTick()
| int PlayScriptCmd::GetStartTick |
( |
| ) |
const |
|
inline |
- Returns
- The song tick the ticks of the commands count from.
◆ SetStartTick()
| void PlayScriptCmd::SetStartTick |
( |
int | nStartTick | ) |
|
|
inline |
- Parameters
-
| nStartTick | The song tick the ticks of the commands count from. |
◆ GetNextCommand()
| int PlayScriptCmd::GetNextCommand |
( |
| ) |
const |
|
inline |
- Returns
- The index of the command that runs next.
◆ SetNextCommand()
| void PlayScriptCmd::SetNextCommand |
( |
int | nNextCommand | ) |
|
|
inline |
- Parameters
-
| nNextCommand | The index of the command that runs next. |
◆ GetTrack()
◆ SetWaitingTask()
| void PlayScriptCmd::SetWaitingTask |
( |
Task * | pWaitingTask | ) |
|
|
inline |
- Parameters
-
| pWaitingTask | The task waiting for the end of the track, or null. |
The documentation for this class was generated from the following file: