|
wavelength 1.0.0
|
Interface through which the rules react to the phrases of a player's track. More...
#include <trackreactor.h>

Public Member Functions | |
| virtual | ~TrackReactor () |
| Release the interface. | |
| virtual int | GetTicksPerBar () const =0 |
| Report the song ticks in one bar. | |
| virtual Player * | GetPlayer () const =0 |
| Report the player who plays the track. | |
| virtual bool | IsBarActive (int nBar)=0 |
| Report whether the phrase of a bar can still be played. | |
| virtual void | HitGem (int nTick, const GemCursor &cursor, bool bRemote)=0 |
| Act on a gem the player hit. | |
| virtual void | MissGem (int nTick, const GemCursor &cursor, bool bRemote)=0 |
| Act on a gem the player missed. | |
| virtual GemCursor | GetCursor ()=0 |
| Report a cursor at the first gem the player catches. | |
Interface through which the rules react to the phrases of a player's track.
The RTTI includes the class name. DuelTrack derives from it as its second base, and NetFaker reports the gems of a remote player through it. The names of the members are inferred.
|
inlinevirtual |
Release the interface.
|
pure virtual |
Report the song ticks in one bar.
The member is pure in this class.
Implemented in DuelTrack, and TrackCapturer.
|
pure virtual |
Report the player who plays the track.
The member is pure in this class.
Implemented in DuelTrack, and TrackCapturer.
|
pure virtual |
Report whether the phrase of a bar can still be played.
The member is pure in this class.
| nBar | The bar. |
Implemented in DuelTrack, and TrackCapturer.
|
pure virtual |
Act on a gem the player hit.
The member is pure in this class.
| nTick | The song tick of the hit. |
| cursor | The gem. |
| bRemote | Whether the hit came from another console. |
Implemented in DuelTrack, and TrackCapturer.
|
pure virtual |
Act on a gem the player missed.
The member is pure in this class.
| nTick | The song tick of the miss. |
| cursor | The gem. |
| bRemote | Whether the miss came from another console. |
Implemented in DuelTrack, and TrackCapturer.
|
pure virtual |
Report a cursor at the first gem the player catches.
The member is pure in this class.
Implemented in DuelTrack, and TrackCapturer.