Cuberite
A lightweight, fast and extensible game server for Minecraft
|
#include <Scoreboard.h>
Public Member Functions | |
bool | AddPlayer (const AString &a_Name) |
Adds a new player to the team. More... | |
bool | AllowsFriendlyFire (void) const |
bool | CanSeeFriendlyInvisible (void) const |
cTeam (const AString &a_Name, const AString &a_DisplayName, const AString &a_Prefix, const AString &a_Suffix) | |
const AString & | GetDisplayName (void) const |
const AString & | GetName (void) const |
size_t | GetNumPlayers (void) const |
Returns the number of registered players. More... | |
const AString & | GetPrefix (void) const |
const AString & | GetSuffix (void) const |
bool | HasPlayer (const AString &a_Name) const |
Returns whether the specified player is in this team. More... | |
bool | RemovePlayer (const AString &a_Name) |
Removes a player from the team. More... | |
void | Reset (void) |
Removes all registered players. More... | |
void | SetCanSeeFriendlyInvisible (bool a_Flag) |
void | SetDisplayName (const AString &a_Name) |
void | SetFriendlyFire (bool a_Flag) |
void | SetPrefix (const AString &a_Prefix) |
void | SetSuffix (const AString &a_Suffix) |
Private Types | |
typedef std::set< AString > | cPlayerNameSet |
Private Attributes | |
bool | m_AllowsFriendlyFire |
bool | m_CanSeeFriendlyInvisible |
AString | m_DisplayName |
AString | m_Name |
cPlayerNameSet | m_Players |
AString | m_Prefix |
AString | m_Suffix |
Friends | |
class | cScoreboardSerializer |
Definition at line 125 of file Scoreboard.h.
|
private |
Definition at line 176 of file Scoreboard.h.
cTeam::cTeam | ( | const AString & | a_Name, |
const AString & | a_DisplayName, | ||
const AString & | a_Prefix, | ||
const AString & | a_Suffix | ||
) |
Definition at line 196 of file Scoreboard.cpp.
bool cTeam::AddPlayer | ( | const AString & | a_Name | ) |
Adds a new player to the team.
Definition at line 213 of file Scoreboard.cpp.
|
inline |
Definition at line 155 of file Scoreboard.h.
|
inline |
Definition at line 156 of file Scoreboard.h.
|
inline |
Definition at line 158 of file Scoreboard.h.
|
inline |
Definition at line 159 of file Scoreboard.h.
size_t cTeam::GetNumPlayers | ( | void | ) | const |
Returns the number of registered players.
Definition at line 264 of file Scoreboard.cpp.
|
inline |
Definition at line 161 of file Scoreboard.h.
|
inline |
Definition at line 162 of file Scoreboard.h.
bool cTeam::HasPlayer | ( | const AString & | a_Name | ) | const |
Returns whether the specified player is in this team.
Definition at line 231 of file Scoreboard.cpp.
bool cTeam::RemovePlayer | ( | const AString & | a_Name | ) |
Removes a player from the team.
Definition at line 222 of file Scoreboard.cpp.
void cTeam::Reset | ( | void | ) |
Removes all registered players.
Definition at line 242 of file Scoreboard.cpp.
|
inline |
Definition at line 165 of file Scoreboard.h.
void cTeam::SetDisplayName | ( | const AString & | a_Name | ) |
Definition at line 253 of file Scoreboard.cpp.
|
inline |
Definition at line 164 of file Scoreboard.h.
|
inline |
Definition at line 169 of file Scoreboard.h.
|
inline |
Definition at line 170 of file Scoreboard.h.
|
friend |
Definition at line 189 of file Scoreboard.h.
|
private |
Definition at line 178 of file Scoreboard.h.
|
private |
Definition at line 179 of file Scoreboard.h.
|
private |
Definition at line 181 of file Scoreboard.h.
|
private |
Definition at line 182 of file Scoreboard.h.
|
private |
Definition at line 187 of file Scoreboard.h.
|
private |
Definition at line 184 of file Scoreboard.h.
|
private |
Definition at line 185 of file Scoreboard.h.