37 const std::vector<int> &openTracks,
67 enum { kNoOwner = -2 };
75 int IsSongSectionEnabled(
int nTrack,
int nSection)
const;
83 int FindSection(
int nBar);
91 std::vector<int> mOpenTracks;
93 const std::vector<int> *mSteps;
95 std::vector<std::vector<int> > mOwners;
113 const std::vector<int> &openTracks,
Policy that decides which tracks a player may catch at each bar.
Definition enablemgr.h:16
One participant's view of a session, driven by messages.
Definition gamer.h:47
Enable policy of a network jam, which limits how many tracks one player may own per section.
Definition netjamenablemgr.h:23
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.
NetJamEnableMgr(int nTrackCount, int nMaxOwned, const std::vector< int > &openTracks, Gamer *pGamer)
Build the policy with every track free in every section.
virtual int QueryBar(int nTrack, int nBar)
Report whether one bar of one track may be caught.
Traversal order over one playable sequence.
Definition playmap.h:47
One participant in a session, local or remote.
Definition player.h:39
NetJamEnableMgr * NewNetJamEnableMgr(int nTrackCount, int nMaxOwned, const std::vector< int > &openTracks, Gamer *pGamer)
Build the policy for a network jam.