wavelength 1.0.0
Loading...
Searching...
No Matches
TrackReactor Class Referenceabstract

Interface through which the rules react to the phrases of a player's track. More...

#include <trackreactor.h>

Inheritance diagram for TrackReactor:

Public Member Functions

virtual ~TrackReactor ()
 Release the interface.
virtual int GetTicksPerBar () const =0
 Report the song ticks in one bar.
virtual Player * GetPlayer () const =0
 Report the player who plays the track.
virtual bool IsBarActive (int nBar)=0
 Report whether the phrase of a bar can still be played.
virtual void HitGem (int nTick, const GemCursor &cursor, bool bRemote)=0
 Act on a gem the player hit.
virtual void MissGem (int nTick, const GemCursor &cursor, bool bRemote)=0
 Act on a gem the player missed.
virtual GemCursor GetCursor ()=0
 Report a cursor at the first gem the player catches.

Detailed Description

Interface through which the rules react to the phrases of a player's track.

The RTTI includes the class name. DuelTrack derives from it as its second base, and NetFaker reports the gems of a remote player through it. The names of the members are inferred.

Constructor & Destructor Documentation

◆ ~TrackReactor()

virtual TrackReactor::~TrackReactor ( )
inlinevirtual

Release the interface.

Ghidra address:
NTSC-U/C: 0x00335238
Ghidra address:
PAL: 0x003a27e8

Member Function Documentation

◆ GetTicksPerBar()

virtual int TrackReactor::GetTicksPerBar ( ) const
pure virtual

Report the song ticks in one bar.

The member is pure in this class.

Returns
The ticks.

Implemented in DuelTrack, and TrackCapturer.

◆ GetPlayer()

virtual Player * TrackReactor::GetPlayer ( ) const
pure virtual

Report the player who plays the track.

The member is pure in this class.

Returns
The player.

Implemented in DuelTrack, and TrackCapturer.

◆ IsBarActive()

virtual bool TrackReactor::IsBarActive ( int nBar)
pure virtual

Report whether the phrase of a bar can still be played.

The member is pure in this class.

Parameters
nBarThe bar.
Returns
Whether the bar's phrase can be played.

Implemented in DuelTrack, and TrackCapturer.

◆ HitGem()

virtual void TrackReactor::HitGem ( int nTick,
const GemCursor & cursor,
bool bRemote )
pure virtual

Act on a gem the player hit.

The member is pure in this class.

Parameters
nTickThe song tick of the hit.
cursorThe gem.
bRemoteWhether the hit came from another console.

Implemented in DuelTrack, and TrackCapturer.

◆ MissGem()

virtual void TrackReactor::MissGem ( int nTick,
const GemCursor & cursor,
bool bRemote )
pure virtual

Act on a gem the player missed.

The member is pure in this class.

Parameters
nTickThe song tick of the miss.
cursorThe gem.
bRemoteWhether the miss came from another console.

Implemented in DuelTrack, and TrackCapturer.

◆ GetCursor()

virtual GemCursor TrackReactor::GetCursor ( )
pure virtual

Report a cursor at the first gem the player catches.

The member is pure in this class.

Returns
The cursor.

Implemented in DuelTrack, and TrackCapturer.


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