|
| | SoloGameLogic (Song *pSong, DataArray *pConfig, int nSeed) |
| | Construct the logic of a solo song.
|
| | ~SoloGameLogic () override |
| | Unregister the script commands and restore the song speed.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Handle a message sent to the logic.
|
| 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.
|
| void | HandleInput (const PlayNoteEvent &event) override |
| | Pass a played note on unless a dialog is open and the button is down.
|
| void | HandleInput (const BtnEvent< 3 > &event) override |
| | Act on a press of the start button, ending the victory lap or the win sequence.
|
| void | HandleInput (const StickEvent< 2 > &event) override |
| | Pass a stick event on unless a dialog is open.
|
| void | HandleInput (const StickEvent< 6 > &event) override |
| | Pass a stick event on unless a dialog is open.
|
| void | SetPaused (bool bPaused, int nPad, int nReason) override |
| | Pause the playing song and show the pause dialog, or resume it.
|
| bool | DeployFreestyle (Player *pPlayer) override |
| | Deploy the freestyle power-up and count the bars it makes possible to capture.
|
| void | OnStart () override |
| | Fill the juice meter, show the controller display, and enable the first tracks.
|
| void | OnFinish (bool bWon) override |
| | Record the result of the song and start the victory lap or the loss.
|
| void | OnBar (int nBar) override |
| | Drain the juice for the bar and end the song when the juice ran out.
|
| void | OnSection () override |
| | Win the song after the last section, or award the energy bonus of the section.
|
| 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.
|
| void | OnPhraseMissed (Track *pTrack) override |
| | Lose the song when the phrase missed was the last chance, and commit the pending juice.
|
| void | AdvanceWinSequence () |
| | Show the next message of the campaign win sequence and schedule the one after.
|
| void | CommitPendingJuice () |
| | Add the pending juice to the meter unless a player is freestyling.
|
| void | DrainPendingJuice () |
| | Take one unit from the pending juice for a bar of a phrase the player does not play.
|
| void | WinNow () |
| | Win the song at once with a fixed score.
|
| void | SaveOrRetry () |
| | Show the result dialog once the display and the win sound bank are ready, or retry later.
|
| void | FreezeAfterLoss () |
| | Stop the song clock and the sound at the end of the slowdown of a lost song.
|
| void | ResumeWithCue (bool bIntro) |
| | Start the victory lap on the freestyle track.
|
| void | Restart (bool bRestartIntro) |
| | Restart the song from the start of the next loop of the victory lap.
|
| void | HandleInput (const RotateEvent &event) override |
| | Move a playing player to the next or previous catch track.
|
| void | HandleInput (const BtnEvent< 4 > &event) override |
| | Toggle the display option of a single controller and save it in the profile.
|
| void | HandleInput (const BtnEvent< 5 > &event) override |
| | Deploy the power-up of a player and log it.
|
| void | HandleInput (const ChangeSectionEvent &event) override |
| | Ignore the event.
|
| void | HandleInput (const BtnEvent< 9 > &event) override |
| | Ignore the event.
|
| void | HandleInput (const BtnEvent< 10 > &event) override |
| | Pass the button to the player.
|
| void | HandleInput (const BtnEvent< 8 > &event) override |
| | Ignore the event.
|
| | GameLogic (Song *pSong, DataArray *pConfig, int nSeed) |
| | Construct the logic of a song.
|
| | ~GameLogic () override |
| | Stop the song and release the players and the tracks.
|
| void | Start () override |
| | Start the song, the tracks, the players, and the bar counting.
|
| void | Stop () override |
| | Stop the song, the tracks, and the players.
|
| bool | IsFinished () const override |
| | Report whether Stop() ran.
|
| int | HasQuit () const override |
| | Report mQuit.
|
| int | IsRestartRequested () const override |
| | Report whether the song is to start again once it ends.
|
| bool | IsFreestyling (int nPlayer) override |
| | Report whether a player is on the freestyle track.
|
| void | Poll () override |
| | Stop the song once the ending finished.
|
| float | GetProgress () override |
| | Report how far the song has played.
|
| bool | IsPlaying () const override |
| | Report whether the song is playing.
|
| virtual bool | DeploySlowdown (Player *pPlayer) |
| | Slow the song down for a player.
|
| virtual bool | DeployBumper (Player *pPlayer) |
| | Refuse a bumper.
|
| virtual bool | DeployCrippler (Player *pPlayer) |
| | Refuse a crippler.
|
| virtual void | EndFreestyle (Player *pPlayer) |
| | Move a player from the freestyle track back to a catch track.
|
| bool | IsFreestyleTrackActive () const |
| | Report whether a player is on the freestyle track while the song plays.
|
| bool | HasPhraseThisBar () const |
| | Report whether a catch track has a phrase in the current bar.
|
| void | EndSong () |
| | Start the ending of the song.
|
| void | Finish (bool bWon) |
| | Stop the players at the end of the song.
|
| void | CapturePhrase (CatchTrack *pTrack, Player *pPlayer, int nBar, bool bStreak) |
| | Record the capture of a phrase and find the next phrase of each local player.
|
| void | ContinueStreak (Track *pTrack, int nBar, int nFromBar) |
| | Lengthen or reset the streak of the player of a track and find the next phrase.
|
| void | EndPhrase (Track *pTrack) |
| | Report the end of a phrase to the triggers and to OnPhraseEnded().
|
| void | MissPhrase (Track *pTrack) |
| | Record a missed phrase and report it to the triggers and to OnPhraseMissed().
|
| void | EnableNextTracks (int nBar) |
| | Enable the catch tracks of the next step of the song's enable order.
|
| void | EnterFreestyle (Player *pPlayer, bool bVictory) |
| | Move a player to the freestyle track.
|
| void | LeaveFreestyle (Player *pPlayer, int nTrack) |
| | Move a player from the freestyle track to a catch track and find the next phrase.
|
| void | StartSlowdown () |
| | Slow the song down.
|
| void | StopSlowdown () |
| | Return the song to its speed after StartSlowdown().
|
| bool | DeployAutocatcher (Player *pPlayer) |
| | Capture a phrase of the track of a player and pulse the controllers of every player on it.
|
| bool | DeployMultiplier (Player *pPlayer) |
| | Raise the multiplier of a player.
|
| | WorldLogic () |
| | Construct the logic and give the input of every controller to the world.
|
| | ~WorldLogic () override |
| | Release the logic.
|
| bool | DispatchPriv (Message *pMsg) override |
| | Pass a JoypadConnectionMsg to OnJoypadConnection() and ignore any other message.
|
| void | AllNotesOff () |
| | Silence every synthesiser channel.
|
| void | ScheduleControllerCheck () |
| | Pause the song again one tick from now when a controller is disconnected.
|
| int | OnJoypadConnection (JoypadConnectionMsg *pMsg) |
| | Pause the playing song when the controller of a player is disconnected.
|
| void * | operator new (size_t nSize) |
| | Allocate a sink from the pool heaps under the tag "MsgSink".
|
| void | operator delete (void *pBlock) |
| | Return a sink to the pool heaps.
|
| virtual | ~MsgSink () |
| virtual bool | Dispatch (Message *pMsg) |
| | Accept a message.
|
| void * | operator new (size_t size) |
| | Allocate from the main heap under the name MsgSink.
|
| void | operator delete (void *mem) |
| | Return memory to its heap.
|
| virtual | ~MsgSink () |
| | Destroy the sink.
|
| virtual bool | Dispatch (Message *msg) |
| | Handle a message.
|
|
| void | AssignTracks () |
| | Assign each player to a random catch track.
|
| void | ApplyFreestyleEffect (int nSet) |
| | Apply one effect set of the song.
|
| void | ShowPowerupText (const char *pszToken, int nPlayer) |
| | Show the localised text of a power-up.
|
| void | CreateTracks (int *pFreestyleType, int *pFreestyleInstrument) |
| | Create the catch tracks and the freestyle track of the song.
|
| void | TickBar () |
| | Count one bar, starting the next section when it begins.
|
| void | AdvanceSection () |
| | Start the next section.
|
| void | ClearNextPhrase (int nPlayer) |
| | Forget the next phrase of a player.
|
| void | FindNextPhrase (int nPlayer, int nTrack, int nFromBar) |
| | Find the first phrase on another catch track at or after a bar, and point the player at it.
|
| void | PlaceRandomPowerups () |
| | Place a random power-up in every bar of every catch track.
|
| void | PlacePowerups () |
| | Place the power-ups of every section in the busiest bars of the catch tracks.
|
| static int | GetControllerArgument (DataArray *pCommand) |
| | Report the controller argument of a script command.
|
| static void | OnAutocatcherCommand (DataArray *pCommand, void *pUserData) |
| | Deploy the autocatcher for a controller on the autocatcher script command.
|
| static void | OnMultiplierCommand (DataArray *pCommand, void *pUserData) |
| | Deploy the multiplier for a controller on the multiplier script command.
|
| static void | OnSlowCommand (DataArray *pCommand, void *pUserData) |
| | Turn the slowdown on or off outside an online game on the slow script command.
|
| static void | OnFreestyleCommand (DataArray *pCommand, void *pUserData) |
| | Deploy the freestyle for a controller on the freestyle script command.
|
| static void | OnFreestyleToggleCommand (DataArray *pCommand, void *pUserData) |
| | Move the player of a controller onto or off the freestyle track on the freestyle_toggle script command.
|
| static void | OnBumperCommand (DataArray *pCommand, void *pUserData) |
| | Deploy the bumper for a controller on the bumper script command.
|
| static void | OnCripplerCommand (DataArray *pCommand, void *pUserData) |
| | Deploy the crippler for a controller on the crippler script command.
|
| static void | OnPowerupCommand (DataArray *pCommand, void *pUserData) |
| | Give a power-up to the player of a controller on the powerup script command while the power-up cheat is on.
|
| Song * | mSong |
| int | mState |
| int | mPaused |
| int | mTicksPerBar |
| int | mNumBars |
| PlayMap * | mPlayMap |
| std::vector< std::unique_ptr< Player > > | mPlayers |
| std::vector< LocalPlayer * > | mLocalPlayers |
| std::vector< std::unique_ptr< CatchTrack > > | mCatchTracks |
| std::unique_ptr< FreestyleTrack > | mFreestyleTrack |
| std::unique_ptr< GameTrackSelector > | mTrackSelector |
| std::unique_ptr< SpeedRamp > | mSpeedRamp |
| int | mPhraseThisBar |
| int | mQuit |
| int | mReserved60 |
| int | mSectionStartBar |
| int | mNextSectionBar |
| int | mSection |
| WorldBeat | mWorldBeat |
| int | mSavedState |
| int | mReserved8c |
| int | mSlowdown |
| int | mNextEnableStep |
| std::vector< PlayerData > | mPlayerData |
| Ptr< Command > | mBarCmd |
| Ptr< Command > | mStopSlowdownCmd |
| Rand | mRand |
| int | mEndTick |
Rules of a song played by one player against the juice meter.
The RTTI records the class as deriving from GameLogic. Each captured phrase adds juice, and each bar without a capture drains it. The song is lost when the juice runs out while a phrase plays, and won at the end of the last section. A won song that completes a campaign tier runs the campaign win sequence, and every won song loops on the freestyle track until the player leaves.