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

Judge of the presses on the lanes of one catch track. More...

#include <gemcatcher.h>

Classes

class  Receiver
 Object told of each judged gem and press. More...
class  CatchCheckCmd
 Command that judges the presses on one lane and passes each gem the player lets go by. More...

Public Member Functions

 GemCatcher (Receiver *pReceiver, CatchTrackState *pState, const float *pMsPerTick, int nTrack, int nTicksPerBar)
 Construct the commands of every lane.
 ~GemCatcher ()
 Withdraw the queued commands.
void Start ()
 Queue the command of every lane from the current tick.
void Stop ()
 Withdraw the command of every lane.
void Reset ()
 Queue the command of every lane again from the current tick.
void Catch (int nLane)
 Judge a press on a lane at the current tick.

Static Public Attributes

static constexpr int kNumLanes = 3
 The number of lanes of a catch track.

Detailed Description

Judge of the presses on the lanes of one catch track.

The class is not polymorphic and has no RTTI. The name comes from the RTTI of its nested classes. Each lane has a CatchCheckCmd that waits on the next gem of the lane.

Constructor & Destructor Documentation

◆ GemCatcher()

GemCatcher::GemCatcher ( Receiver * pReceiver,
CatchTrackState * pState,
const float * pMsPerTick,
int nTrack,
int nTicksPerBar )

Construct the commands of every lane.

Parameters
pReceiverThe receiver of the judgements.
pStateThe state of the track.
pMsPerTickThe length of a tick in milliseconds.
nTrackThe track.
nTicksPerBarThe length of a bar in ticks.
Ghidra address:
NTSC-U/C: 0x00117160
Ghidra address:
PAL: 0x001188f8

◆ ~GemCatcher()

GemCatcher::~GemCatcher ( )

Withdraw the queued commands.

Ghidra address:
NTSC-U/C: 0x00117278
Ghidra address:
PAL: 0x00118a10

Member Function Documentation

◆ Start()

void GemCatcher::Start ( )

Queue the command of every lane from the current tick.

Ghidra address:
NTSC-U/C: 0x001172f8
Ghidra address:
PAL: 0x00118a90

◆ Stop()

void GemCatcher::Stop ( )

Withdraw the command of every lane.

Ghidra address:
NTSC-U/C: 0x00117350
Ghidra address:
PAL: 0x00118ae8

◆ Reset()

void GemCatcher::Reset ( )

Queue the command of every lane again from the current tick.

Ghidra address:
NTSC-U/C: 0x001173b0
Ghidra address:
PAL: 0x00118b48

◆ Catch()

void GemCatcher::Catch ( int nLane)

Judge a press on a lane at the current tick.

Parameters
nLaneThe lane.
Ghidra address:
NTSC-U/C: 0x00117400
Ghidra address:
PAL: 0x00118b98

Member Data Documentation

◆ kNumLanes

int GemCatcher::kNumLanes = 3
staticconstexpr

The number of lanes of a catch track.


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