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

#include <GameModel.h>

Inheritance diagram for gameModel::Snitch:
gameModel::Ball gameModel::Object

Public Member Functions

 Snitch ()
 
 Snitch (Position position)
 
bool operator== (const Snitch &other) const
 
bool operator!= (const Snitch &other) const
 
- Public Member Functions inherited from gameModel::Ball
 Ball (Position position, communication::messages::types::EntityId id)
 
- Public Member Functions inherited from gameModel::Object
 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

bool exists = false
 
- Data Fields inherited from gameModel::Object
Position position = {}
 

Additional Inherited Members

- Protected Attributes inherited from gameModel::Object
communication::messages::types::EntityId id {}
 

Detailed Description

Snitch type Ball

Constructor & Destructor Documentation

gameModel::Snitch::Snitch ( )

Places Snitch on random position on the field and makes it non existent

gameModel::Snitch::Snitch ( Position  position)
explicit

Places Snitch at the specified location

Parameters
positionPosition where the Snitch is constructed

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