|
resonance 1.0.1
|
Enable policy of a network jam, which limits how many tracks one player may own per section. More...
#include <netjamenablemgr.h>


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. | |
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.
| NetJamEnableMgr::NetJamEnableMgr | ( | int | nTrackCount, |
| int | nMaxOwned, | ||
| const std::vector< int > & | openTracks, | ||
| Gamer * | pGamer ) |
Build the policy with every track free in every section.
| nTrackCount | The level's track count. |
| nMaxOwned | The tracks one player may own per section. |
| openTracks | The tracks that may be caught while the list is incomplete. |
| pGamer | The participant. |
|
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.
| nTrack | The track. |
| nBar | The bar. |
| pPlayer | The owner, which the body does not read. |
Implements EnableMgr.
|
virtual |
Report whether one bar of one track may be caught.
| nTrack | The track. |
| nBar | The bar. |
Implements EnableMgr.