wavelength 1.0.0
Loading...
Searching...
No Matches
trackreactor.h
Go to the documentation of this file.
1#pragma once
2
3#include "game/gemcursor.h"
4#include "game/player.h"
5
13public:
20 virtual ~TrackReactor() {
21 }
22
30 virtual int GetTicksPerBar() const = 0;
31
39 virtual Player *GetPlayer() const = 0;
40
49 virtual bool IsBarActive(int nBar) = 0;
50
60 virtual void HitGem(int nTick, const GemCursor &cursor, bool bRemote) = 0;
61
71 virtual void MissGem(int nTick, const GemCursor &cursor, bool bRemote) = 0;
72
80 virtual GemCursor GetCursor() = 0;
81};
Position at one gem of a catch track, walked in the order the song plays the gems.
Definition gemcursor.h:14
One participant in a song: the track the participant plays, the score, and the streak.
Definition player.h:19
Interface through which the rules react to the phrases of a player's track.
Definition trackreactor.h:12
virtual void HitGem(int nTick, const GemCursor &cursor, bool bRemote)=0
Act on a gem the player hit.
virtual GemCursor GetCursor()=0
Report a cursor at the first gem the player catches.
virtual void MissGem(int nTick, const GemCursor &cursor, bool bRemote)=0
Act on a gem the player missed.
virtual Player * GetPlayer() const =0
Report the player who plays the track.
virtual ~TrackReactor()
Release the interface.
Definition trackreactor.h:20
virtual int GetTicksPerBar() const =0
Report the song ticks in one bar.
virtual bool IsBarActive(int nBar)=0
Report whether the phrase of a bar can still be played.