|
wavelength 1.0.0
|
Player on another console of an online session. More...
#include <remoteplayer.h>


Public Member Functions | |
| RemotePlayer (int nIndex, int nTicksPerBar) | |
| Construct a player that the network updates. | |
| ~RemotePlayer () override | |
| Release the player. | |
| Public Member Functions inherited from Player | |
| 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 | SetTrack (Track *pTrack) |
| Move to a track and log the move. | |
| virtual void | HidePowerup () |
| Hide the player's power-up icon. | |
| virtual void | CancelMultiplier () |
| Withdraw the scheduled end of the multiplier power-up. | |
| virtual void | SetScore (int nScore) |
| Set the score and show it. | |
| virtual void | AddScore (int nPoints) |
| Add points to the score and show the new score. | |
| virtual void | CommitPendingPoints (bool bHide) |
| Add the pending points to the score and clear them. | |
| virtual void | LosePendingPoints () |
| Forfeit the pending points. | |
| virtual void | ActivateMultiplier () |
| Start the multiplier power-up and schedule its end. | |
| virtual void | SetCatching (bool bCatching) |
| Set whether the player is catching. | |
| virtual void | SetRepeat (bool bRepeat) |
| Set the remix repeat state. | |
| virtual int | GetPadNum () const |
| Report the controller port of the player. | |
| 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) |
Additional Inherited Members | |
| Protected Attributes inherited from Player | |
| int | mIndex |
| int | mTicksPerBar |
| Track * | mTrack |
| int | mScore |
| int | mPendingPoints |
| int | mMultiplierValue |
| int | mStreak |
| int | mCatching |
| int | mAborted |
| int | mRepeat |
| int | mLastHitTick |
| Ptr< Command > | mMultiplierEndCommand |
| int | mPowerup |
Player on another console of an online session.
The RTTI records the class as deriving from Player. The class adds no member and overrides only the destructor.
| RemotePlayer::RemotePlayer | ( | int | nIndex, |
| int | nTicksPerBar ) |
Construct a player that the network updates.
| nIndex | The player's index. |
| nTicksPerBar | The song ticks in one bar. |
|
inlineoverride |
Release the player.