Places the gems a player presses on a duel track for the other player to catch.
More...
#include <dueltrackpitcher.h>
|
| | 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.
|
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.
◆ 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
-
| pTrack | The track the presses are made on. |
| pReceiver | The receiver of the judgements. |
| pRiffData | The riffs the gems play. |
| pGems | The gems the other player catches. |
| pPlayMap | The map of the song positions. |
| pPatterns | The duel patterns of the song. |
| nPhraseTicks | The length of a phrase in ticks. |
| nCatchSide | The side of the player who catches the gems. |
| nTicksPerBar | The song ticks in one bar. |
| nPhraseBars | The length of a phrase in bars. |
| nWindowTicks | The ticks into a phrase in which a press counts. |
| bEasiest | Whether 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
◆ ShowPattern()
| void DuelTrackPitcher::ShowPattern |
( |
int | nStartBar | ) |
|
Show the steps the duel pattern allows in a phrase.
- Parameters
-
| nStartBar | The 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
-
- Ghidra address:
- NTSC-U/C: 0x0010bf78
- Ghidra address:
- PAL: 0x0010d6b0
◆ SetRiffData()
Change the riffs the gems play.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x0010c340
- Ghidra address:
- PAL: 0x0010da78
The documentation for this class was generated from the following file: