implemented conceding

This commit is contained in:
Max-Wilhelm Bruker 2009-12-01 17:26:42 +01:00
parent 207d10d3e2
commit 78c1851c52
18 changed files with 168 additions and 51 deletions

View file

@ -220,6 +220,13 @@ public:
static SerializableItem *newItem() { return new Command_ReadyStart; }
int getItemId() const { return ItemId_Command_ReadyStart; }
};
class Command_Concede : public GameCommand {
Q_OBJECT
public:
Command_Concede(int _gameId = -1);
static SerializableItem *newItem() { return new Command_Concede; }
int getItemId() const { return ItemId_Command_Concede; }
};
class Command_IncCounter : public GameCommand {
Q_OBJECT
public:
@ -328,6 +335,13 @@ public:
static SerializableItem *newItem() { return new Event_ReadyStart; }
int getItemId() const { return ItemId_Event_ReadyStart; }
};
class Event_Concede : public GameEvent {
Q_OBJECT
public:
Event_Concede(int _gameId = -1, int _playerId = -1);
static SerializableItem *newItem() { return new Event_Concede; }
int getItemId() const { return ItemId_Event_Concede; }
};
class Event_GameStart : public GameEvent {
Q_OBJECT
public: