19 virtual QJsonObject
toJson()
const override;
20 virtual void doWork()
override;
Definition: commands.h:14
virtual void doWork() override
Every Commands must define its effects on the receiving game.
Definition: clientreadycommand.cpp:26
ClientReadyCommand(Timer::TimerMSec timeStamp)
Definition: clientreadycommand.cpp:9
Commands
The Commands enum stores all command types with corresponding ID.
Definition: commands.h:9
virtual QJsonObject toJson() const override
Every command must define how its members can be serialized.
Definition: clientreadycommand.cpp:21
signed int TimerMSec
Definition: timer.h:22
Definition: eventhandler.cpp:18
The ClientReadyCommand signals to the server that the client has successfully created the World and i...
Definition: clientreadycommand.h:13
Timer::TimerMSec timeStamp() const
get the time as counted by the sending game that this command was created and sent ...
Definition: abstractcommand.cpp:54
virtual Commands commandType() const override
Every Command must specify its type.
Definition: clientreadycommand.h:22
The AbstractCommand class defines the interface that every command has to implement.
Definition: abstractcommand.h:23