wavelength 1.0.0
Loading...
Searching...
No Matches
NetFaker Class Reference

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ NetFaker()

NetFaker::NetFaker ( TrackReactor * pReactor,
int nCountMisses = 0 )
inlineexplicit

Construct a faker at the first gem the reactor reports.

Inline. The constructors of DuelTrack and TrackCapturer expand it.

Parameters
pReactorThe rules the gems are reported to.
nCountMissesNon-zero to count the misses of a remote player who is not catching.

Member Function Documentation

◆ Start()

void NetFaker::Start ( )

Schedule the gem the cursor is at.

Ghidra address:
NTSC-U/C: 0x00128350
Ghidra address:
PAL: 0x00129b48

◆ Stop()

void NetFaker::Stop ( )

Withdraw the scheduled gem.

Ghidra address:
NTSC-U/C: 0x001283c0
Ghidra address:
PAL: 0x00129bb8

◆ SetCursor()

void NetFaker::SetCursor ( const GemCursor & cursor)

Move to a gem and schedule it.

Parameters
cursorThe gem.
Ghidra address:
NTSC-U/C: 0x001283f8
Ghidra address:
PAL: 0x00129bf0

◆ Update()

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.

Ghidra address:
NTSC-U/C: 0x00128498
Ghidra address:
PAL: 0x00129c90

The documentation for this class was generated from the following file: