#include <GameModel.h>
Public Member Functions | |
Object (const Position &position, communication::messages::types::EntityId id) | |
bool | operator== (const Object &other) const |
bool | operator!= (const Object &other) const |
communication::messages::types::EntityId | getId () const |
Data Fields | |
Position | position = {} |
Protected Attributes | |
communication::messages::types::EntityId | id {} |
Friends | |
void | from_json (const nlohmann::json &, Object &) |
Base class for game objects like a ball or a player.
communication::messages::types::EntityId gameModel::Object::getId | ( | ) | const |
Getter
|
friend |
Friend method for serialization