-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscoreboard_w.h
48 lines (37 loc) · 870 Bytes
/
scoreboard_w.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef SCOREBOARD_W_H
#define SCOREBOARD_W_H
#include <Wt/WContainerWidget.h>
#include <Wt/WTable.h>
#include <Wt/WTableRow.h>
#include "player.h"
using namespace std;
using namespace Wt;
namespace fb
{
class scoreboard_player_w: public WTableRow
{
public:
scoreboard_player_w();
void name_set(string);
};
class scoreboard_table_w: public WTable
{
public:
scoreboard_table_w();
scoreboard_player_w* player_add();
//WTableRow* insertRow(int row, unique_ptr<WTableRow> = nullptr);
};
class scoreboard_w: public WContainerWidget
{
private:
vector<player*> players;
//WTable* table;
scoreboard_table_w* table;
public:
scoreboard_w(list<shared_ptr<player>>, player* current_player);
void update_player(player*);
void update_current_player(player*);
void remove_player(player*);
};
}
#endif //SCOREBOARD_W_H