23 #ifndef __PLAYERS_DIAGRAM_H_ 24 #define __PLAYERS_DIAGRAM_H_ 27 #include "serverapi/player.h" 43 displayName = name.toLower();
44 displayName[0] = displayName[0].toUpper();
47 : name(name), displayName(displayName)
57 static QList<PlayersDiagramStyle> availableSlotStyles();
63 static void loadImages(
const QString &style);
64 static bool isNumericStyle(
const QString &style);
70 QPixmap pixmap()
const {
return diagram; }
79 static QImage openImage, openSpecImage, botImage, playerImage, spectatorImage;
89 QImage colorizePlayer(QImage image,
const QColor &color);
92 void drawTeam(PlayerType playerType,
int team,
int howMany);
93 void drawPictures(
const QImage &image,
int howMany);
95 void obtainPlayerNumbers();
97 int numBotsOnTeam[MAX_TEAMS];
98 int numBotsWithoutTeam;
100 int numFreeSpectatorSlots;
101 int numHumansWithoutTeam;
102 int numHumansOnTeam[MAX_TEAMS];
106 static const QString DEFAULT_STYLE;
107 static QString currentlyLoadedStyle;
115 static QImage loadImage(
const QString &style,
const QString &name);
116 static QStringList stylePaths();
A representation of a server for a given game.