tec::GameState
#include <game-state.hpp>
Public Functions
Name | |
---|---|
GameState() =default | |
GameState(const GameState & other) | |
GameState(GameState && other) | |
GameState & | operator=(const GameState & other) |
GameState & | operator=(GameState && other) |
void | In(const proto::GameStateUpdate & gsu) |
void | Out(proto::GameStateUpdate * gsu) const |
Public Attributes
Name | |
---|---|
std::unordered_map< eid, Position > | positions |
std::unordered_map< eid, Orientation > | orientations |
std::unordered_map< eid, Velocity > | velocities |
state_id_t | state_id |
state_id_t | command_id |
uint64_t | timestamp |
Public Functions Documentation
function GameState
GameState() =default
function GameState
inline GameState(
const GameState & other
)
function GameState
inline GameState(
GameState && other
)
function operator=
inline GameState & operator=(
const GameState & other
)
function operator=
inline GameState & operator=(
GameState && other
)
function In
inline void In(
const proto::GameStateUpdate & gsu
)
function Out
inline void Out(
proto::GameStateUpdate * gsu
) const
Public Attributes Documentation
variable positions
std::unordered_map< eid, Position > positions;
variable orientations
std::unordered_map< eid, Orientation > orientations;
variable velocities
std::unordered_map< eid, Velocity > velocities;
variable state_id
state_id_t state_id = 0;
variable command_id
state_id_t command_id = 0;
variable timestamp
uint64_t timestamp = 0;
Updated on 2022-07-24 at 19:27:35 +0000