resonance 1.0.1
Loading...
Searching...
No Matches
NetJamEnableMgr Class Reference

Enable policy of a network jam, which limits how many tracks one player may own per section. More...

#include <netjamenablemgr.h>

Inheritance diagram for NetJamEnableMgr:
Collaboration diagram for NetJamEnableMgr:

Public Member Functions

 NetJamEnableMgr (int nTrackCount, int nMaxOwned, const std::vector< int > &openTracks, Gamer *pGamer)
 Build the policy with every track free in every section.
virtual void SetBarOwner (int nTrack, int nBar, Player *pPlayer)
 Record the owner of a bar's section and invalidate every track whose state it changes.
virtual int QueryBar (int nTrack, int nBar)
 Report whether one bar of one track may be caught.
Public Member Functions inherited from EnableMgr
virtual ~EnableMgr ()
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.

Detailed Description

Enable policy of a network jam, which limits how many tracks one player may own per section.

Its RTTI descriptor is at 0x00901ff0. It derives publicly from EnableMgr at offset 0. Its type function is at 0x001058e0 and its table at 0x007ccb28. The object is 0x34 bytes. It inherits ForceEnabled() and ForceDisable(), and the destructor at 0x00104e70 is implicitly declared.

The policy records the owner of every track in every play-map section. The local player may take a free track while it owns fewer than mMaxOwned tracks in the section, and always keeps the tracks it owns. While mOpenTracks lists fewer tracks than the level has, only the listed tracks may be caught.

Constructor & Destructor Documentation

◆ NetJamEnableMgr()

NetJamEnableMgr::NetJamEnableMgr ( int nTrackCount,
int nMaxOwned,
const std::vector< int > & openTracks,
Gamer * pGamer )

Build the policy with every track free in every section.

Parameters
nTrackCountThe level's track count.
nMaxOwnedThe tracks one player may own per section.
openTracksThe tracks that may be caught while the list is incomplete.
pGamerThe participant.
Ghidra address:
NTSC-U/C: 0x00102790
Ghidra address:
PAL: 0x00102790

Member Function Documentation

◆ SetBarOwner()

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

Record the owner of a bar's section and invalidate every track whose state it changes.

The owner is read from the track's phrase database rather than from pPlayer. Does nothing while mOpenTracks is incomplete.

Parameters
nTrackThe track.
nBarThe bar.
pPlayerThe owner, which the body does not read.
Ghidra address:
NTSC-U/C: 0x00103158
Ghidra address:
PAL: 0x00103158

Implements EnableMgr.

◆ QueryBar()

virtual int NetJamEnableMgr::QueryBar ( int nTrack,
int nBar )
virtual

Report whether one bar of one track may be caught.

Parameters
nTrackThe track.
nBarThe bar.
Returns
Non-zero when the bar may be caught.
Ghidra address:
NTSC-U/C: 0x001059f0
Ghidra address:
PAL: 0x001059f0

Implements EnableMgr.


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