|
resonance 1.0.1
|
Enable policy of a game, which ties each track to the tracks that must be owned first. More...
#include <gameenablemgr.h>


Public Member Functions | |
| GameEnableMgr (int nConfigCode, int nTrackCount, Gamer *pGamer, int nReleaseWhenMet) | |
| Build the policy with requirement lists read from a configuration code. | |
| GameEnableMgr (int nTrackCount, Gamer *pGamer, int nReleaseWhenMet) | |
| Build the policy with empty requirement lists, which enable every track. | |
| virtual void | SetBarOwner (int nTrack, int nBar, Player *pPlayer) |
| Record a new owner and act on every track whose state it changes. | |
| virtual void | ForceEnabled (int nTrack, int nBar, int nUntilBar) |
| Leave one track free of its requirements until a bar, or release them for good. | |
| virtual void | ForceDisable (int nTrack) |
| Stop one track from ever being enabled. | |
| 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 () |
Static Public Member Functions | |
| static GameEnableMgr * | CreateReleasing (int nConfigCode, int nTrackCount, Gamer *pGamer) |
| Build the solo game policy, which releases a track's requirements once met. | |
| static GameEnableMgr * | CreateInvalidating (int nConfigCode, int nTrackCount, Gamer *pGamer) |
| Build a policy from a configuration code that invalidates bars instead of releasing. | |
| static GameEnableMgr * | CreateUnrestricted (int nTrackCount, Gamer *pGamer) |
| Build the policy of a game with several players, which enables every track. | |
Enable policy of a game, which ties each track to the tracks that must be owned first.
Its RTTI descriptor is at 0x008efc00. It derives publicly from EnableMgr at offset 0. Its type function is at 0x00105208 and its table at 0x007ccbc0. The object is 0x30 bytes, and the destructor at 0x00104ca0 is implicitly declared.
A track is enabled for a bar when every track in its requirement list has an owner at that bar, and never when the list holds -1. The requirement lists come from a configuration code, one one-based track list per track. When a track's state changes, the policy either releases the track's requirements for good or invalidates the bar for the track's receivers.
| GameEnableMgr::GameEnableMgr | ( | int | nConfigCode, |
| int | nTrackCount, | ||
| Gamer * | pGamer, | ||
| int | nReleaseWhenMet ) |
Build the policy with requirement lists read from a configuration code.
| nConfigCode | The configuration code of the requirement lists. |
| nTrackCount | The level's track count. |
| pGamer | The participant whose tracks the policy governs. |
| nReleaseWhenMet | Non-zero to release a track's requirements once its state changes. |
| GameEnableMgr::GameEnableMgr | ( | int | nTrackCount, |
| Gamer * | pGamer, | ||
| int | nReleaseWhenMet ) |
Build the policy with empty requirement lists, which enable every track.
| nTrackCount | The level's track count. |
| pGamer | The participant whose tracks the policy governs. |
| nReleaseWhenMet | Non-zero to release a track's requirements once its state changes. |
|
static |
Build the solo game policy, which releases a track's requirements once met.
Gamer::CreateEnableMgr() calls it with configuration code 0x387, and the routine at 0x001167e0 with code 0x386. The title is inferred.
| nConfigCode | The configuration code of the requirement lists. |
| nTrackCount | The level's track count. |
| pGamer | The participant. |
|
static |
Build a policy from a configuration code that invalidates bars instead of releasing.
The image has no caller. The title is inferred.
| nConfigCode | The configuration code of the requirement lists. |
| nTrackCount | The level's track count. |
| pGamer | The participant. |
|
static |
Build the policy of a game with several players, which enables every track.
The title is inferred.
| nTrackCount | The level's track count. |
| pGamer | The participant. |
|
virtual |
Record a new owner and act on every track whose state it changes.
| nTrack | The track. |
| nBar | The bar. |
| pPlayer | The new owner, or the null player. |
Implements EnableMgr.
|
virtual |
Leave one track free of its requirements until a bar, or release them for good.
A bar before the current one releases the requirements. Either way the track's receivers are told the whole level is invalid.
| nTrack | The track. |
| nBar | The current bar. |
| nUntilBar | The first bar the requirements apply to again. |
Reimplemented from EnableMgr.
|
virtual |
Stop one track from ever being enabled.
Replaces the track's requirement list with the single entry -1.
| nTrack | The track. |
Reimplemented from EnableMgr.
|
virtual |
Report whether one bar of one track may be caught.
A bar before the track's free-until bar may always be caught. Otherwise the bar is mapped through PlayMap::MapBar() and the requirements are tested against the owners there.
| nTrack | The track. |
| nBar | The bar. |
Implements EnableMgr.