Rules of capturing the phrases of a catch track.
More...
#include <trackcapturer.h>
|
| | TrackCapturer (Receiver *pReceiver, CatchTrackState *pState, const float *pMsPerTick, PlayMap *pPlayMap, const SectionBoundaries *pSections, int nNumBars, int nTrack, int nTicksPerBar, int nStopPreviousNote) |
| | Construct the rules of a track and look for the first run.
|
| | ~TrackCapturer () override |
| | Stop and release the helpers.
|
| void | Start () |
| | Look for the run from the current bar and start judging the presses.
|
| void | Stop () |
| | Stop judging the presses and hide the run.
|
| void | Restart () |
| | Stop and start again when started.
|
| void | SetPlayer (Player *pPlayer) |
| | Give the track to a player, ending the run of the previous player when it was catching.
|
| void | Press (int nLane) |
| | Judge a press on a lane, or explain the controls when the capturer is stopped.
|
| void | SetFakeInput (int nEnabled) |
| | Turn the autopilot on or off.
|
| void | SetRunHidden (int nHidden) |
| | Hide or show the run and the catch meter.
|
| void | RefreshRun () |
| | Look for the run again from the current bar.
|
| bool | GetRunStart (int nBar, int *pTick, int *pLane) |
| | Find the first gem of the next run from a bar.
|
| int | GetTicksPerBar () const override |
| | Report the song ticks in one bar.
|
| Player * | GetPlayer () const override |
| | Report the player who plays the track.
|
| bool | IsBarActive (int nBar) override |
| | Report whether a bar can be caught and is not yet captured.
|
| void | HitGem (int nTick, const GemCursor &cursor, bool bRemote) override |
| | Act on a gem the player hit.
|
| void | MissGem (int nTick, const GemCursor &cursor, bool bRemote) override |
| | Act on a gem the player let pass.
|
| GemCursor | GetCursor () override |
| | Report a cursor at the first gem of the track.
|
| virtual | ~TrackReactor () |
| | Release the interface.
|
Rules of capturing the phrases of a catch track.
The RTTI records TrackReactor as the one base, and the nested TrackCapturer::Receiver, TrackCapturer::CatchReceiver, TrackCapturer::SetCaptureStartCmd, and TrackCapturer::Faker. CatchTrack has one. A run is the stretch of active bars the player must catch next, at most GameConfig::mBarCaptureThreshold bars long. Catching every gem of a run captures it, and a miss inside the run loses it.
◆ TrackCapturer()
Construct the rules of a track and look for the first run.
- Parameters
-
| pReceiver | The receiver of the runs. |
| pState | The state of the bars of the track. |
| pMsPerTick | The length of a tick in milliseconds. |
| pPlayMap | The play map of the song. |
| pSections | The sections of the song, stored and not read here. |
| nNumBars | The length of the song in bars, which the body does not read. |
| nTrack | The track. |
| nTicksPerBar | The song ticks in one bar. |
| nStopPreviousNote | Non-zero to stop the note of the previous gem at each hit. |
- Ghidra address:
- NTSC-U/C: 0x00155628
- Ghidra address:
- PAL: 0x00156e90
◆ ~TrackCapturer()
| TrackCapturer::~TrackCapturer |
( |
| ) |
|
|
override |
Stop and release the helpers.
- Ghidra address:
- NTSC-U/C: 0x001558f8
- Ghidra address:
- PAL: 0x00157160
◆ Start()
| void TrackCapturer::Start |
( |
| ) |
|
Look for the run from the current bar and start judging the presses.
- Ghidra address:
- NTSC-U/C: 0x001559e0
- Ghidra address:
- PAL: 0x00157248
◆ Stop()
| void TrackCapturer::Stop |
( |
| ) |
|
Stop judging the presses and hide the run.
- Ghidra address:
- NTSC-U/C: 0x00155af8
- Ghidra address:
- PAL: 0x00157360
◆ Restart()
| void TrackCapturer::Restart |
( |
| ) |
|
Stop and start again when started.
- Ghidra address:
- NTSC-U/C: 0x00155ba8
- Ghidra address:
- PAL: 0x00157410
◆ SetPlayer()
| void TrackCapturer::SetPlayer |
( |
Player * | pPlayer | ) |
|
Give the track to a player, ending the run of the previous player when it was catching.
The PAL build also clears mGemsCaught.
- Parameters
-
| pPlayer | The player, or null. |
- Ghidra address:
- NTSC-U/C: 0x00155be8
- Ghidra address:
- PAL: 0x00157450
◆ Press()
| void TrackCapturer::Press |
( |
int | nLane | ) |
|
Judge a press on a lane, or explain the controls when the capturer is stopped.
- Parameters
-
- Ghidra address:
- NTSC-U/C: 0x00155c68
- Ghidra address:
- PAL: 0x001574d0
◆ SetFakeInput()
| void TrackCapturer::SetFakeInput |
( |
int | nEnabled | ) |
|
Turn the autopilot on or off.
- Parameters
-
| nEnabled | Non-zero to press each gem automatically. |
- Ghidra address:
- NTSC-U/C: 0x00155ca0
- Ghidra address:
- PAL: 0x00157508
◆ SetRunHidden()
| void TrackCapturer::SetRunHidden |
( |
int | nHidden | ) |
|
Hide or show the run and the catch meter.
- Parameters
-
| nHidden | Non-zero to hide them. |
- Ghidra address:
- NTSC-U/C: 0x00155cb0
- Ghidra address:
- PAL: 0x00157518
◆ RefreshRun()
| void TrackCapturer::RefreshRun |
( |
| ) |
|
Look for the run again from the current bar.
The PAL build then clears mGemsCaught when the player is not catching.
- Ghidra address:
- NTSC-U/C: 0x00155ce8
- Ghidra address:
- PAL: 0x00157550
◆ GetRunStart()
| bool TrackCapturer::GetRunStart |
( |
int | nBar, |
|
|
int * | pTick, |
|
|
int * | pLane ) |
Find the first gem of the next run from a bar.
- Parameters
-
| nBar | The bar. |
| pTick | Receives the tick of the gem. |
| pLane | Receives the lane of the gem. |
- Returns
- Whether a run was found, and true without writing the outputs past the last bar.
- Ghidra address:
- NTSC-U/C: 0x00155d28
- Ghidra address:
- PAL: 0x001575b0
◆ GetTicksPerBar()
| int TrackCapturer::GetTicksPerBar |
( |
| ) |
const |
|
inlineoverridevirtual |
Report the song ticks in one bar.
- Returns
- The ticks.
- Ghidra address:
- NTSC-U/C: 0x0034cf40
- Ghidra address:
- PAL: 0x003ba370
Implements TrackReactor.
◆ GetPlayer()
| Player * TrackCapturer::GetPlayer |
( |
| ) |
const |
|
inlineoverridevirtual |
Report the player who plays the track.
- Returns
- The player, or null.
- Ghidra address:
- NTSC-U/C: 0x0034cf48
- Ghidra address:
- PAL: 0x003ba378
Implements TrackReactor.
◆ IsBarActive()
| bool TrackCapturer::IsBarActive |
( |
int | nBar | ) |
|
|
overridevirtual |
Report whether a bar can be caught and is not yet captured.
- Parameters
-
- Returns
- Whether the bar is active.
- Ghidra address:
- NTSC-U/C: 0x00155e60
- Ghidra address:
- PAL: 0x001576e8
Implements TrackReactor.
◆ HitGem()
| void TrackCapturer::HitGem |
( |
int | nTick, |
|
|
const GemCursor & | cursor, |
|
|
bool | bRemote ) |
|
overridevirtual |
Act on a gem the player hit.
A gem at or before the last gem hit counts as a miss. Inside the run the hit adds to the catch meter and the last gem of a bar completes the bar.
- Parameters
-
| nTick | The song tick of the hit. |
| cursor | The gem. |
| bRemote | Whether the hit came from another console. |
- Ghidra address:
- NTSC-U/C: 0x00156758
- Ghidra address:
- PAL: 0x00157fe0
Implements TrackReactor.
◆ MissGem()
| void TrackCapturer::MissGem |
( |
int | nTick, |
|
|
const GemCursor & | cursor, |
|
|
bool | bRemote ) |
|
overridevirtual |
Act on a gem the player let pass.
- Parameters
-
| nTick | The song tick of the miss. |
| cursor | The gem. |
| bRemote | Whether the miss came from another console. |
- Ghidra address:
- NTSC-U/C: 0x00156b08
- Ghidra address:
- PAL: 0x00158390
Implements TrackReactor.
◆ GetCursor()
Report a cursor at the first gem of the track.
- Returns
- The cursor.
- Ghidra address:
- NTSC-U/C: 0x00156bc0
- Ghidra address:
- PAL: 0x00158448
Implements TrackReactor.
The documentation for this class was generated from the following file: