Terminus
clientreadycommand.h
Go to the documentation of this file.
1 #pragma once
2 
4 
5 namespace terminus
6 {
7 
14 {
15 public:
17  ClientReadyCommand(Timer::TimerMSec timeStamp, QJsonObject jsonObject);
18 
19  virtual QJsonObject toJson() const override;
20  virtual void doWork() override;
21 
22  virtual Commands commandType() const override { return Commands::Command_ClientReady; }
23 };
24 
25 } // namespace terminus
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