23 #ifndef __PLAYERS_DIAGRAM_H_ 24 #define __PLAYERS_DIAGRAM_H_ 27 #include "serverapi/player.h" 33 #define NUM_SLOTSTYLES 2 49 QPixmap pixmap()
const {
return diagram; }
58 static void deleteImages();
59 static bool isStyleNumberValid(
int style);
61 static const char* slotStyles[NUM_SLOTSTYLES];
62 static const QImage *openImage, *openSpecImage, *botImage, *playerImage, *spectatorImage;
72 const QImage*
colorizePlayer(
const QImage *image,
const QColor &color);
75 void drawTeam(PlayerType playerType,
int team,
int howMany);
76 void drawPictures(
const QImage* image,
int howMany);
78 void obtainPlayerNumbers();
80 int numBotsOnTeam[MAX_TEAMS];
81 int numBotsWithoutTeam;
83 int numFreeSpectatorSlots;
84 int numHumansWithoutTeam;
85 int numHumansOnTeam[MAX_TEAMS];
static void loadImages(int style)
A representation of a server for a given game.
const QImage * colorizePlayer(const QImage *image, const QColor &color)