This closes feature request 0000020. Attention, this breaks protocol compatibility.

This commit is contained in:
Max-Wilhelm Bruker 2010-06-03 02:29:48 +02:00
parent cfd715cce9
commit 41c4603fe9
12 changed files with 87 additions and 13 deletions

View file

@ -227,7 +227,8 @@ public:
class Command_ReadyStart : public GameCommand {
Q_OBJECT
public:
Command_ReadyStart(int _gameId = -1);
Command_ReadyStart(int _gameId = -1, bool _ready = false);
bool getReady() const { return static_cast<SerializableItem_Bool *>(itemMap.value("ready"))->getData(); };
static SerializableItem *newItem() { return new Command_ReadyStart; }
int getItemId() const { return ItemId_Command_ReadyStart; }
};