35 int32_t *piPlayers{
nullptr};
36 int32_t iPlayerCount{0};
37 int32_t iPlayerCapacity{0};
76 int32_t
GetIndexedPlayer(int32_t iIndex)
const {
return Inside<int32_t>(iIndex, 0, iPlayerCount-1) ? piPlayers[iIndex] : 0; }
119 int32_t iTeamCount{0};
120 int32_t iTeamCapacity{0};
122 int32_t iLastTeamID{0};
123 bool fAllowHostilityChange{
true};
124 bool fAllowTeamSwitch{
false};
127 bool fTeamColors{
false};
128 bool fAutoGenerateTeams{
false};
130 int32_t iMaxScriptPlayers{0};
145 void AddTeam(
C4Team *pNewTeam);
147 int32_t GetFreeTeamID();
148 bool GenerateDefaultTeams(int32_t iUpToID);
const int32_t TEAMID_Unknown
void AddPlayer(class C4PlayerInfo &rInfo, bool fAdjustPlayer)
void RecheckColor(C4TeamList &rForList)
C4Team & operator=(const C4Team &rCopy)
StdStrBuf GetNameWithParticipants() const
void CompileFunc(StdCompiler *pComp)
uint32_t GetColor() const
int32_t GetIndexedPlayer(int32_t iIndex) const
const char * GetIconSpec() const
bool IsPlayerIDInTeam(int32_t iID)
int32_t GetPlrStartIndex() const
int32_t GetFirstUnjoinedPlayerID() const
void RemoveIndexedPlayer(int32_t iIndex)
int32_t GetPlayerCount() const
void RemovePlayerByID(int32_t iID)
const char * GetName() const
bool IsRuntimeJoinTeamChoice() const
int32_t GetLargestTeamID() const
int32_t GetStartupTeamCount(int32_t startup_player_count)
C4Team * GetTeamByIndex(int32_t iIndex) const
C4Team * GetTeamByPlayerID(int32_t iID) const
bool IsMultiTeams() const
C4Team * GetTeamByID(int32_t iID) const
C4Team * CreateTeam(const char *szName)
bool IsTeamVisible() const
void EnforceLeagueRules()
void CompileFunc(StdCompiler *pComp)
void SetTeamDistribution(TeamDist eToVal)
C4Team * GetRandomSmallestTeam() const
@ TEAM_AllowHostilityChange
bool Save(C4Group &hGroup)
bool Load(C4Group &hGroup, class C4Scenario *pInitDefault, class C4LangStringTable *pLang)
bool CanLocalChooseTeam() const
bool IsHostilityChangeAllowed() const
int32_t GetMaxScriptPlayers() const
bool IsAutoGenerateTeams() const
bool IsTeamColors() const
TeamDist GetTeamDist() const
StdStrBuf GetScriptPlayerName() const
void FillTeamDistOptions(C4GUI::ComboBox_FillCB *pFiller) const
void SetTeamColors(bool fEnabled)
StdStrBuf GetTeamDistString() const
bool IsJoin2TeamAllowed(int32_t idTeam, C4PlayerType plrType)
bool RecheckPlayerInfoTeams(C4PlayerInfo &rNewJoin, bool fByHost)
int32_t GetTeamCount() const
C4Team * GetGenerateTeamByID(int32_t iID)
C4TeamList & operator=(const C4TeamList &rCopy)
void SendSetTeamDist(TeamDist eNewDist)
bool IsRandomTeam() const
bool IsTeamSwitchAllowed() const
void SendSetTeamColors(bool fEnabled)
bool HasTeamDistOptions() const
bool CanLocalSeeTeam() const
int32_t GetForcedTeamSelection(int32_t idForPlayer) const
C4Team * GetTeamByName(const char *szName) const
const char * getData() const