143 bool AddPlayer(
const AString & a_Name);
146 bool RemovePlayer(
const AString & a_Name);
149 bool HasPlayer(
const AString & a_Name)
const;
157 size_t GetNumPlayers(
void)
const;
234 bool RemoveObjective(
const AString & a_Name);
243 bool RemoveTeam(
const AString & a_Name);
252 size_t GetNumObjectives(
void)
const;
254 size_t GetNumTeams(
void)
const;
void SendTo(cClientHandle &a_Client)
Send this objective to the specified client.
const AString & GetSuffix(void) const
Score GetScore(const AString &a_Name) const
Returns the score of the specified player.
bool AllowsFriendlyFire(void) const
static eType StringToType(const AString &a_Name)
void SetPrefix(const AString &a_Prefix)
eType GetType(void) const
static const char * GetClassStatic(void)
cCriticalSection m_CSTeams
std::pair< AString, Score > cTrackedPlayer
const AString & GetPrefix(void) const
void ResetScore(const AString &a_Name)
Resets the score of the specified player.
cObjective(const AString &a_Name, const AString &a_DisplayName, eType a_Type, cWorld *a_World)
const AString & GetName(void) const
Score AddScore(const AString &a_Name, Score a_Delta)
Adds a_Delta and returns the new score.
bool CanSeeFriendlyInvisible(void) const
std::set< AString > cPlayerNameSet
static const char * GetClassStatic(void)
std::vector< AString > AStringVector
std::pair< AString, cTeam > cNamedTeam
cObjectiveMap m_Objectives
std::map< AString, cTeam > cTeamMap
void SetSuffix(const AString &a_Suffix)
cCriticalSection m_CSObjectives
Score SubScore(const AString &a_Name, Score a_Delta)
Subtracts a_Delta and returns the new score.
const AString & GetName(void) const
const AString & GetDisplayName(void) const
bool m_CanSeeFriendlyInvisible
void SetScore(const AString &a_Name, Score a_Score)
Sets the score of the specified player.
std::pair< AString, cObjective > cNamedObjective
std::map< AString, Score > cScoreMap
void SetCanSeeFriendlyInvisible(bool a_Flag)
static AString TypeToString(eType a_Type)
const AString & GetDisplayName(void) const
void SetFriendlyFire(bool a_Flag)
bool m_AllowsFriendlyFire
void SetDisplayName(const AString &a_Name)
std::map< AString, cObjective > cObjectiveMap
void Reset(void)
Resets the objective.