#include <entity.h>
Public Methods | |
Entity () | |
Entity (string entity_type, int entity_id, vector< int > &position) | |
~Entity () | |
bool | operator== (const Entity &other) const |
Public Attributes | |
bool | use_coord_in_eq |
string | type |
int | id |
vector<int> | coordinates |
bool | is_ready |
This is only the observable information, not the whole entity/agent information By default, the entity stores type, id, coordinates and state (ready or not for a new cycle) information.
|
constructor; initialises variabiles to default values.
|
|
constructor; initialises variabiles to given values.
|
|
destructor.
|
|
equality operator. useful for stl operations on Entity containers.
|
|
relative coordinates; the absolute coordinates are kept in the map.
|
|
unique id of the entity.
|
|
true if the entity is ready to start a new cycle.
|
|
type of the entity.
|
|
if true will include the coordinates in comparison (false by default).
|