|
wavelength 1.0.0
|
Player of the gems of a remote player's track, standing in for the remote player's input. More...
#include <netfaker.h>
Public Member Functions | |
| NetFaker (TrackReactor *pReactor, int nCountMisses=0) | |
| Construct a faker at the first gem the reactor reports. | |
| void | Start () |
| Schedule the gem the cursor is at. | |
| void | Stop () |
| Withdraw the scheduled gem. | |
| void | SetCursor (const GemCursor &cursor) |
| Move to a gem and schedule it. | |
| void | Update () |
| Report the gem of the current tick and schedule the next gem. | |
Player of the gems of a remote player's track, standing in for the remote player's input.
The RTTI records the command the class schedules. The class is not polymorphic. DuelTrack and ClickTrack build one over their gems. At each gem's tick the faker reports the gem as hit to its TrackReactor, or as missed when the remote player has stopped catching within the bar of the previous gem and the faker counts such misses.
|
inlineexplicit |
Construct a faker at the first gem the reactor reports.
Inline. The constructors of DuelTrack and TrackCapturer expand it.
| pReactor | The rules the gems are reported to. |
| nCountMisses | Non-zero to count the misses of a remote player who is not catching. |
| void NetFaker::Start | ( | ) |
Schedule the gem the cursor is at.
| void NetFaker::Stop | ( | ) |
Withdraw the scheduled gem.
| void NetFaker::SetCursor | ( | const GemCursor & | cursor | ) |
Move to a gem and schedule it.
| cursor | The gem. |
| void NetFaker::Update | ( | ) |
Report the gem of the current tick and schedule the next gem.
A gem is reported only for a remote player who has not left the song, in a bar the reactor reports active.