170 void SetPaused(
bool bPaused,
int nPad,
int nReason)
override;
389 float mIntroDuration;
396 int mForceWinSequence;
397 int mWinSequenceStep;
400 int mPossibleCaptureBars;
Input event of a button press that names only the player.
Definition btnevent.h:15
Track whose phrases a player captures by playing them.
Definition catchtrack.h:33
Unit of work a Scheduler runs at a set time.
Definition command.h:13
Reference-counted array of script data nodes.
Definition dataarray.h:20
GameLogic(Song *pSong, DataArray *pConfig, int nSeed)
Construct the logic of a song.
void HandleInput(const RotateEvent &event) override
Move a playing player to the next or previous catch track.
Energy of a solo player, which falls while the player misses phrases and ends the song at 0.
Definition juicemeter.h:9
Base of every event the game passes between a MsgSource and a MsgSink.
Definition message.h:40
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
One participant in a song: the track the participant plays, the score, and the streak.
Definition player.h:19
Owner of one reference to an Attachment.
Definition ptr.h:16
void Execute() override
Show the localised "STAGE_COMPLETED" message with the number of the section.
~CheckpointTextCmd() override
Release the command.
Definition sologamelogic.h:58
CheckpointTextCmd(SoloGameLogic *pLogic)
Construct the command for a logic.
Definition sologamelogic.h:49
static void OnJuice(DataArray *pCommand, void *pUserData)
Run the "juice" script command, which adds its argument to the juice meter.
static void OnResultDialog(Metagame::DialogAction action, void *pUserData)
Act on the choice of the dialog of a lost song or of a practice song.
void DrainPendingJuice()
Take one unit from the pending juice for a bar of a phrase the player does not play.
int GetTick() override
Report the game tick, the song tick shifted by the restarts of the victory lap.
float GetTime() override
Report the game time, the song time shifted by the restarts of the victory lap.
static void OnPauseDialog(Metagame::DialogAction action, void *pUserData)
Act on the choice of the pause dialog.
WinSequenceStep
Steps of the campaign win sequence, the values of mWinSequenceStep.
Definition sologamelogic.h:28
@ kWinStepPrompt
Definition sologamelogic.h:33
@ kWinStepNextDifficulty
Definition sologamelogic.h:30
@ kWinStepNextCampaign
Definition sologamelogic.h:31
@ kWinStepDone
Definition sologamelogic.h:34
@ kWinStepFinalCampaign
Definition sologamelogic.h:32
@ kWinStepCampaign
Definition sologamelogic.h:29
void Restart(bool bRestartIntro)
Restart the song from the start of the next loop of the victory lap.
bool DispatchPriv(Message *pMsg) override
Handle a message sent to the logic.
void ResumeWithCue(bool bIntro)
Start the victory lap on the freestyle track.
void SaveOrRetry()
Show the result dialog once the display and the win sound bank are ready, or retry later.
void WinNow()
Win the song at once with a fixed score.
void OnStart() override
Fill the juice meter, show the controller display, and enable the first tracks.
void AdvanceWinSequence()
Show the next message of the campaign win sequence and schedule the one after.
void OnPhraseMissed(Track *pTrack) override
Lose the song when the phrase missed was the last chance, and commit the pending juice.
static void OnWinSequence(DataArray *pCommand, void *pUserData)
Run the "win_sequence" script command, which runs the win sequence after the next win.
void HandleInput(const PlayNoteEvent &event) override
Pass a played note on unless a dialog is open and the button is down.
void OnPhraseCaptured(CatchTrack *pTrack, Player *pPlayer, int nBar, bool bStreak) override
Add the juice of a capture and count the bars the capture makes possible to capture.
void OnPhraseEnded(Track *pTrack) override
Uncount the captured track.
static void OnWinCheat(DataArray *pCommand, void *pUserData)
Run the "win_cheat" script command, which wins the song.
void FreezeAfterLoss()
Stop the song clock and the sound at the end of the slowdown of a lost song.
static void OnWinDialog(Metagame::DialogAction action, void *pUserData)
Act on the choice of the dialog of a won song.
~SoloGameLogic() override
Unregister the script commands and restore the song speed.
void HandleInput(const StickEvent< 6 > &event) override
Pass a stick event on unless a dialog is open.
bool DeployFreestyle(Player *pPlayer) override
Deploy the freestyle power-up and count the bars it makes possible to capture.
void SetPaused(bool bPaused, int nPad, int nReason) override
Pause the playing song and show the pause dialog, or resume it.
void CommitPendingJuice()
Add the pending juice to the meter unless a player is freestyling.
void OnFinish(bool bWon) override
Record the result of the song and start the victory lap or the loss.
SoloGameLogic(Song *pSong, DataArray *pConfig, int nSeed)
Construct the logic of a solo song.
void HandleInput(const StickEvent< 2 > &event) override
Pass a stick event on unless a dialog is open.
void OnSection() override
Win the song after the last section, or award the energy bonus of the section.
void HandleInput(const BtnEvent< 3 > &event) override
Act on a press of the start button, ending the victory lap or the win sequence.
void OnBar(int nBar) override
Drain the juice for the bar and end the song when the juice ran out.
One song: its configuration from the song text file and the tracks its MIDI file builds.
Definition song.h:38
Input event of an analog stick position.
Definition stickevent.h:15
Growable text buffer that is also a PrnStream.
Definition string.h:19
One instrument track of the song that a player can play.
Definition track.h:18