Only allocate space for four digits in the score screen -- if somebody actually gets...
[ccbs] / bigscreen / group.h
1 #ifndef _GROUP_H
2 #define _GROUP_H 1
3
4 #include <vector>
5 #include "widestring.h"
6
7 /* This more or less mimics the structures from show-tournament.pl */
8 struct Song {
9         int id;
10         widestring title, short_title, artist;
11 };
12 struct Score {
13         Song song;
14         bool chosen;
15         int score;
16 };
17 struct Player {
18         unsigned id;
19         widestring nick;
20         unsigned total, rank;
21         
22         std::vector<Score> scores;
23 };
24
25 struct Group {
26         unsigned tournament, round, parallel;
27         std::vector<Player> players;
28 };
29
30 #endif /* !defined(_GROUPSCREEN_H) */