wavelength 1.0.0
Loading...
Searching...
No Matches
RemotePlayer Class Reference

Player on another console of an online session. More...

#include <remoteplayer.h>

Inheritance diagram for RemotePlayer:
Collaboration diagram for RemotePlayer:

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

Detailed Description

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.

Constructor & Destructor Documentation

◆ RemotePlayer()

RemotePlayer::RemotePlayer ( int nIndex,
int nTicksPerBar )

Construct a player that the network updates.

Parameters
nIndexThe player's index.
nTicksPerBarThe song ticks in one bar.
Ghidra address:
NTSC-U/C: 0x00137340
Ghidra address:
PAL: 0x00138ba0

◆ ~RemotePlayer()

RemotePlayer::~RemotePlayer ( )
inlineoverride

Release the player.

Ghidra address:
NTSC-U/C: 0x0033fd50
Ghidra address:
PAL: 0x003ad288

The documentation for this class was generated from the following file: