GameLogic
 All Data Structures Files Functions Variables Friends
Public Member Functions | Data Fields | Protected Attributes | Friends
gameModel::Object Class Reference

#include <GameModel.h>

Inheritance diagram for gameModel::Object:
gameModel::Ball gameModel::CubeOfShit gameModel::Player gameModel::Bludger gameModel::Quaffle gameModel::Snitch gameModel::Beater gameModel::Chaser gameModel::Keeper gameModel::Seeker

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 &)
 

Detailed Description

Base class for game objects like a ball or a player.

Member Function Documentation

communication::messages::types::EntityId gameModel::Object::getId ( ) const

Getter

Returns
object id

Friends And Related Function Documentation

void from_json ( const nlohmann::json &  ,
Object  
)
friend

Friend method for serialization


The documentation for this class was generated from the following files: