The PrepareNewGameCommand is sent to the client when a multiplayer session begins to synchronize the game timer, terrain seed and client player position (left or right track)
More...
#include <preparenewgamecommand.h>
The PrepareNewGameCommand is sent to the client when a multiplayer session begins to synchronize the game timer, terrain seed and client player position (left or right track)
terminus::PrepareNewGameCommand::PrepareNewGameCommand |
( |
Timer::TimerMSec |
timeStamp, |
|
|
bool |
isPlayerOne, |
|
|
unsigned int |
terrainSeed |
|
) |
| |
terminus::PrepareNewGameCommand::PrepareNewGameCommand |
( |
Timer::TimerMSec |
timeStamp, |
|
|
QJsonObject |
jsonObject |
|
) |
| |
Commands terminus::PrepareNewGameCommand::commandType |
( |
| ) |
const |
|
overridevirtual |
void terminus::PrepareNewGameCommand::doWork |
( |
| ) |
|
|
overridevirtual |
Every Commands must define its effects on the receiving game.
This Method is guaranteed to be executed in the receiving game's frame update context with a valid Game instance in m_game
Implements terminus::AbstractCommand.
bool terminus::PrepareNewGameCommand::isPlayerOne |
( |
| ) |
const |
unsigned int terminus::PrepareNewGameCommand::terrainSeed |
( |
| ) |
const |
QJsonObject terminus::PrepareNewGameCommand::toJson |
( |
| ) |
const |
|
overridevirtual |
Every command must define how its members can be serialized.
- Returns
- A QJsonObject containing the parameters / members
Implements terminus::AbstractCommand.
bool terminus::PrepareNewGameCommand::m_isPlayerOne |
|
protected |
unsigned int terminus::PrepareNewGameCommand::m_terrainSeed |
|
protected |
The documentation for this class was generated from the following files: