29 Player(
int nIndex,
int nTicksPerBar);
Input event of a button press that names only the player.
Definition btnevent.h:15
Input event that plays a note on one of the three gem buttons.
Definition playnoteevent.h:10
int mMultiplierValue
Definition player.h:357
void HandleInput(const StickEvent< 6 > &event)
Hand a stick event to the player's track.
bool GetCatching() const
Report whether the player is catching.
int mPowerup
Definition player.h:364
int mIndex
Definition player.h:352
virtual void SetCatching(bool bCatching)
Set whether the player is catching.
int GetLastHitTick() const
Definition player.h:342
virtual void SetRepeat(bool bRepeat)
Set the remix repeat state.
void SetStreak(int nStreak)
Set the streak and show the streak multipliers it earns.
virtual void CommitPendingPoints(bool bHide)
Add the pending points to the score and clear them.
int mCatching
Definition player.h:359
int GetStreak() const
Report the streak.
virtual void CancelMultiplier()
Withdraw the scheduled end of the multiplier power-up.
void Abort()
Mark the player as having left the song.
int mRepeat
Definition player.h:361
Player(int nIndex, int nTicksPerBar)
Construct a player with no track, no score, no streak, and no power-up.
Track * mTrack
Definition player.h:354
virtual void SetTrack(Track *pTrack)
Move to a track and log the move.
virtual void SetScore(int nScore)
Set the score and show it.
bool IsAborted() const
Report whether the player left the song.
Definition player.h:168
Track * GetTrack() const
Report the player's track.
virtual int GetPadNum() const
Report the controller port of the player.
Definition player.h:141
int mScore
Definition player.h:355
int GetScore() const
Report the score.
Definition player.h:159
int mTicksPerBar
Definition player.h:353
int mAborted
Definition player.h:360
virtual ~Player()
Cancel the multiplier power-up's end and release its command.
void SetPendingPoints(int nPoints, bool bHide)
Set the pending points and show them scaled by the multiplier power-up value.
virtual void HidePowerup()
Hide the player's power-up icon.
void ResetStreak()
Reset the streak to zero.
void HandleInput(const StickEvent< 2 > &event)
Hand a stick event to the player's track.
void SetLastHitTick(int nTick)
Definition player.h:347
virtual void LosePendingPoints()
Forfeit the pending points.
int mPendingPoints
Definition player.h:356
Ptr< Command > mMultiplierEndCommand
Definition player.h:363
int StreakMultiplier(int nStreak) const
Report the streak multiplier a streak earns.
void SetPowerup(int nPowerup)
Record the kind of power-up the player holds and show it.
void HandleInput(const PlayNoteEvent &event)
Hand a note event to the player's track.
virtual void AddScore(int nPoints)
Add points to the score and show the new score.
virtual void ActivateMultiplier()
Start the multiplier power-up and schedule its end.
void EndMultiplier()
End the multiplier power-up.
bool GetRepeat() const
Report the remix repeat state.
int mStreak
Definition player.h:358
int GetPowerup() const
Report the kind of power-up the player holds.
int GetIndex() const
Report the player's index.
Definition player.h:150
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.
int mLastHitTick
Definition player.h:362
void IncrementStreak()
Lengthen the streak by one.
Owner of one reference to an Attachment.
Definition ptr.h:16
Input event of an analog stick position.
Definition stickevent.h:15
One instrument track of the song that a player can play.
Definition track.h:18