mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-11 08:34:52 -07:00
implemented conceding
This commit is contained in:
parent
207d10d3e2
commit
78c1851c52
18 changed files with 168 additions and 51 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue