|
| | LocalPlayer (int nIndex, int nTicksPerBar, int nPadNum) |
| | Construct a player for a controller port.
|
| | ~LocalPlayer () override |
| | Release the broadcast command.
|
| void | SetTrack (Track *pTrack) override |
| | Move to a track, move this player's count in TheMixer from the old track to the new one, and broadcast.
|
| void | SetScore (int nScore) override |
| | Set the score, show it, and broadcast.
|
| void | AddScore (int nPoints) override |
| | Add points to the score, show the new score, and broadcast.
|
| void | ActivateMultiplier () override |
| | Start the multiplier power-up and, in an online session, announce it with a MultiplierPacket.
|
| void | SetCatching (bool bCatching) override |
| | Set whether the player is catching, and broadcast when it changes.
|
| void | SetRepeat (bool bRepeat) override |
| | Set the remix repeat state and broadcast.
|
| int | GetPadNum () const override |
| | Report the controller port of the player.
|
| virtual void | Capture () |
| | Add the pending points to the score, hide the pending points, and broadcast.
|
| void | Broadcast () |
| | Send this player's state to the other consoles and schedule the next broadcast.
|
| | Player (int nIndex, int nTicksPerBar) |
| | Construct a player with no track, no score, no streak, and no power-up.
|
| virtual | ~Player () |
| | Cancel the multiplier power-up's end and release its command.
|
| virtual void | HidePowerup () |
| | Hide the player's power-up icon.
|
| virtual void | CancelMultiplier () |
| | Withdraw the scheduled end of the multiplier power-up.
|
| virtual void | CommitPendingPoints (bool bHide) |
| | Add the pending points to the score and clear them.
|
| virtual void | LosePendingPoints () |
| | Forfeit the pending points.
|
| int | GetIndex () const |
| | Report the player's index.
|
| int | GetScore () const |
| | Report the score.
|
| bool | IsAborted () const |
| | Report whether the player left the song.
|
| Track * | GetTrack () const |
| | Report the player's track.
|
| void | HandleInput (const PlayNoteEvent &event) |
| | Hand a note event to the player's track.
|
| void | HandleInput (const BtnEvent< 10 > &event) |
| | Hand a button event to the player's track.
|
| void | HandleInput (const BtnEvent< 8 > &event) |
| | Hand a button event to the player's track.
|
| void | HandleInput (const StickEvent< 2 > &event) |
| | Hand a stick event to the player's track.
|
| void | HandleInput (const StickEvent< 6 > &event) |
| | Hand a stick event to the player's track.
|
| void | Abort () |
| | Mark the player as having left the song.
|
| void | SetPendingPoints (int nPoints, bool bHide) |
| | Set the pending points and show them scaled by the multiplier power-up value.
|
| void | EndMultiplier () |
| | End the multiplier power-up.
|
| void | SetStreak (int nStreak) |
| | Set the streak and show the streak multipliers it earns.
|
| void | IncrementStreak () |
| | Lengthen the streak by one.
|
| void | ResetStreak () |
| | Reset the streak to zero.
|
| int | GetStreak () const |
| | Report the streak.
|
| bool | GetCatching () const |
| | Report whether the player is catching.
|
| int | GetPowerup () const |
| | Report the kind of power-up the player holds.
|
| void | SetPowerup (int nPowerup) |
| | Record the kind of power-up the player holds and show it.
|
| bool | GetRepeat () const |
| | Report the remix repeat state.
|
| int | StreakMultiplier (int nStreak) const |
| | Report the streak multiplier a streak earns.
|
| int | GetLastHitTick () const |
| void | SetLastHitTick (int nTick) |
Player on this console, controlled through one controller port.
The RTTI records the class as deriving from Player. In an online session every change to the track, the score, the catching state, or the repeat state is sent to the other consoles through Broadcast(), which also repeats itself every 500 milliseconds.