|
wavelength 1.0.0
|
One instrument track of the song that a player can play. More...
#include <track.h>


Public Member Functions | |
| Track (int nIndex) | |
| Construct a track with no player. | |
| virtual | ~Track () |
| Release the track. | |
| virtual void | Start ()=0 |
| Start the track with the song. | |
| virtual void | Stop ()=0 |
| Stop the track with the song. | |
| virtual void | SetPlayer (Player *pPlayer) |
| Assign the player, and record the assignment in the session statistics. | |
| virtual void | HandleInput (Player *pPlayer, const PlayNoteEvent &event)=0 |
| Act on a note a player played on this track. | |
| virtual void | HandleInput (Player *pPlayer, const BtnEvent< 8 > &event)=0 |
| Act on a button event of a player on this track. | |
| virtual void | HandleInput (Player *pPlayer, const StickEvent< 2 > &event)=0 |
| Act on a stick event of a player on this track. | |
| virtual void | HandleInput (Player *pPlayer, const StickEvent< 6 > &event)=0 |
| Act on a stick event of a player on this track. | |
| virtual void | HandleInput (Player *pPlayer, const BtnEvent< 10 > &event)=0 |
| Act on a button event of a player on this track. | |
| int | GetIndex () const |
| Player * | GetPlayer () const |
Protected Attributes | |
| int | mIndex |
| Player * | mPlayer |
One instrument track of the song that a player can play.
The RTTI includes the class name, and the class has no base. The derived classes include CatchTrack, FreestyleTrack, and RemixTrack. Two data words precede the vptr. The controller input a player receives is handed to the player's track through the five HandleInput() overloads, which this class declares pure.
|
explicit |
Construct a track with no player.
| nIndex | The track's index in the song. |
|
inlinevirtual |
Release the track.
|
pure virtual |
Start the track with the song.
Implemented in AxeTrack, CatchTrack, DuelTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
pure virtual |
Stop the track with the song.
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
virtual |
Assign the player, and record the assignment in the session statistics.
| pPlayer | The player, or null. |
Reimplemented in AxeTrack, CatchTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
pure virtual |
Act on a note a player played on this track.
| pPlayer | The player. |
| event | The event. |
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
Act on a button event of a player on this track.
| pPlayer | The player. |
| event | The event. |
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
pure virtual |
Act on a stick event of a player on this track.
| pPlayer | The player. |
| event | The event. |
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
pure virtual |
Act on a stick event of a player on this track.
| pPlayer | The player. |
| event | The event. |
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
Act on a button event of a player on this track.
| pPlayer | The player. |
| event | The event. |
Implemented in AxeTrack, CatchTrack, DuelTrack, FreestyleTrack, PitchTrack, ScratchTrack, and VoxTrack.
|
inline |
|
inline |
|
protected |
The track's index in the song. +0x00
|
protected |
The player on the track, or null. +0x04