|
resonance 1.0.1
|
Policy that decides which tracks a player may catch at each bar. More...
#include <enablemgr.h>

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. | |
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.
|
virtual |
|
pure virtual |
Record the player who owns one bar of one track.
Slot 2, pure.
| nTrack | The track. |
| nBar | The bar. |
| pPlayer | The owner, or the null player. |
Implemented in GameEnableMgr, LocalJamEnableMgr, and NetJamEnableMgr.
|
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.
| nTrack | The track. |
| nBar | The current bar. |
| nUntilBar | The first bar the requirements apply to again. |
Reimplemented in GameEnableMgr.
|
virtual |
Stop one track from ever being enabled.
Slot 4. The base implementation does nothing. Gamer runs it for every track outside catch mode.
| nTrack | The track. |
Reimplemented in GameEnableMgr.
|
pure virtual |
Report whether one bar of one track may be caught.
Slot 5, pure.
| nTrack | The track. |
| nBar | The bar. |
Implemented in GameEnableMgr, LocalJamEnableMgr, and NetJamEnableMgr.