iw4x-client/src/Components/Modules/ServerInfo.hpp
/dev/root 124e86387b [General] Fixed line endings
- converted all line endings in cpp/hpp files to dos
2016-11-25 13:00:48 +01:00

44 lines
837 B
C++

namespace Components
{
class ServerInfo : public Component
{
public:
ServerInfo();
~ServerInfo();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "ServerInfo"; };
#endif
static Utils::InfoString GetInfo();
private:
class Container
{
public:
class Player
{
public:
int ping;
int score;
std::string name;
};
unsigned int currentPlayer;
std::vector<Player> playerList;
Network::Address target;
};
static Container PlayerContainer;
static void ServerStatus();
static unsigned int GetPlayerCount();
static const char* GetPlayerText(unsigned int index, int column);
static void SelectPlayer(unsigned int index);
static void DrawScoreboardInfo(void* a1);
static void DrawScoreboardStub();
};
}