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

Places the gems a player presses on a duel track for the other player to catch. More...

#include <dueltrackpitcher.h>

Classes

class  Receiver
 Object told of each press the pitcher judges. More...

Public Member Functions

 DuelTrackPitcher (Track *pTrack, Receiver *pReceiver, PitchTrackRiffData *pRiffData, CatchTrackData *pGems, PlayMap *pPlayMap, DuelPatternTable *pPatterns, int nPhraseTicks, int nCatchSide, int nTicksPerBar, int nPhraseBars, int nWindowTicks, bool bEasiest)
 Construct a pitcher.
void ShowPattern (int nStartBar)
 Show the steps the duel pattern allows in a phrase.
void Press (int nSlot)
 Judge a press of a gem button at the current tick, and place a gem when the press counts.
void SetRiffData (PitchTrackRiffData *pRiffData)
 Change the riffs the gems play.

Detailed Description

Places the gems a player presses on a duel track for the other player to catch.

The class is not polymorphic. The name comes from the RTTI of its nested class Receiver. DuelTrack embeds one. The presses are rounded to a grid of steps, and a press counts only on a step the duel pattern of the bar allows, in the first part of the phrase. The names of the members are inferred.

Constructor & Destructor Documentation

◆ DuelTrackPitcher()

DuelTrackPitcher::DuelTrackPitcher ( Track * pTrack,
Receiver * pReceiver,
PitchTrackRiffData * pRiffData,
CatchTrackData * pGems,
PlayMap * pPlayMap,
DuelPatternTable * pPatterns,
int nPhraseTicks,
int nCatchSide,
int nTicksPerBar,
int nPhraseBars,
int nWindowTicks,
bool bEasiest )

Construct a pitcher.

Parameters
pTrackThe track the presses are made on.
pReceiverThe receiver of the judgements.
pRiffDataThe riffs the gems play.
pGemsThe gems the other player catches.
pPlayMapThe map of the song positions.
pPatternsThe duel patterns of the song.
nPhraseTicksThe length of a phrase in ticks.
nCatchSideThe side of the player who catches the gems.
nTicksPerBarThe song ticks in one bar.
nPhraseBarsThe length of a phrase in bars.
nWindowTicksThe ticks into a phrase in which a press counts.
bEasiestWhether the song is at the easiest difficulty, at which a press on a step the pattern does not allow is ignored.
Ghidra address:
NTSC-U/C: 0x0010bdc8
Ghidra address:
PAL: 0x0010d500

Member Function Documentation

◆ ShowPattern()

void DuelTrackPitcher::ShowPattern ( int nStartBar)

Show the steps the duel pattern allows in a phrase.

Parameters
nStartBarThe first bar of the phrase.
Ghidra address:
NTSC-U/C: 0x0010be50
Ghidra address:
PAL: 0x0010d588

◆ Press()

void DuelTrackPitcher::Press ( int nSlot)

Judge a press of a gem button at the current tick, and place a gem when the press counts.

The gem is sent to the other console in an online duel.

Parameters
nSlotThe gem button.
Ghidra address:
NTSC-U/C: 0x0010bf78
Ghidra address:
PAL: 0x0010d6b0

◆ SetRiffData()

void DuelTrackPitcher::SetRiffData ( PitchTrackRiffData * pRiffData)

Change the riffs the gems play.

Parameters
pRiffDataThe riffs.
Ghidra address:
NTSC-U/C: 0x0010c340
Ghidra address:
PAL: 0x0010da78

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