resonance 1.0.1
Loading...
Searching...
No Matches
EnableMgr Class Referenceabstract

Policy that decides which tracks a player may catch at each bar. More...

#include <enablemgr.h>

Inheritance diagram for EnableMgr:

Public Member Functions

virtual ~EnableMgr ()
virtual void SetBarOwner (int nTrack, int nBar, Player *pPlayer)=0
 Record the player who owns one bar of one track.
virtual void ForceEnabled (int nTrack, int nBar, int nUntilBar)
 Leave one track free of its requirements until a bar.
virtual void ForceDisable (int nTrack)
 Stop one track from ever being enabled.
virtual int QueryBar (int nTrack, int nBar)=0
 Report whether one bar of one track may be caught.

Detailed Description

Policy that decides which tracks a player may catch at each bar.

Its RTTI descriptor is at 0x0086f750. It is a root class with no data beyond its vptr. Its type function is at 0x00105060 and its table at 0x007ccc68 has six entries. Slots 2 and 5 are pure. Gamer stores one at +0x90, builds it for the session mode, and forwards Gamer::SetBarOwner() to slot 2 and Gamer::QueryBar() to slot 5. GameEnableMgr, LocalJamEnableMgr, and NetJamEnableMgr derive from it.

Every slot title is inferred from the overrides and from Gamer's calls.

Constructor & Destructor Documentation

◆ ~EnableMgr()

virtual EnableMgr::~EnableMgr ( )
virtual
Ghidra address:
NTSC-U/C: 0x001050a0
Ghidra address:
PAL: 0x001050a0

Member Function Documentation

◆ SetBarOwner()

virtual void EnableMgr::SetBarOwner ( int nTrack,
int nBar,
Player * pPlayer )
pure virtual

Record the player who owns one bar of one track.

Slot 2, pure.

Parameters
nTrackThe track.
nBarThe bar.
pPlayerThe owner, or the null player.

Implemented in GameEnableMgr, LocalJamEnableMgr, and NetJamEnableMgr.

◆ ForceEnabled()

virtual void EnableMgr::ForceEnabled ( int nTrack,
int nBar,
int nUntilBar )
virtual

Leave one track free of its requirements until a bar.

Slot 3. The base implementation does nothing. Gamer passes the bar a player captured and the bar eight later.

Parameters
nTrackThe track.
nBarThe current bar.
nUntilBarThe first bar the requirements apply to again.
Ghidra address:
NTSC-U/C: 0x001050d0
Ghidra address:
PAL: 0x001050d0

Reimplemented in GameEnableMgr.

◆ ForceDisable()

virtual void EnableMgr::ForceDisable ( int nTrack)
virtual

Stop one track from ever being enabled.

Slot 4. The base implementation does nothing. Gamer runs it for every track outside catch mode.

Parameters
nTrackThe track.
Ghidra address:
NTSC-U/C: 0x001050d8
Ghidra address:
PAL: 0x001050d8

Reimplemented in GameEnableMgr.

◆ QueryBar()

virtual int EnableMgr::QueryBar ( int nTrack,
int nBar )
pure virtual

Report whether one bar of one track may be caught.

Slot 5, pure.

Parameters
nTrackThe track.
nBarThe bar.
Returns
Non-zero when the bar may be caught.

Implemented in GameEnableMgr, LocalJamEnableMgr, and NetJamEnableMgr.


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