Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

DALT_Server::Entity Class Reference

Contains basic information about an entity. More...

#include <entity.h>

List of all members.

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


Detailed Description

Contains basic information about an entity.

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.

Author:
Vlad Mereuta


Constructor & Destructor Documentation

DALT_Server::Entity::Entity ( )
 

constructor; initialises variabiles to default values.

DALT_Server::Entity::Entity ( string entity_type,
int entity_id,
vector< int > & position )
 

constructor; initialises variabiles to given values.

Parameters:
entity_type  
entity_id  
position  

DALT_Server::Entity::~Entity ( )
 

destructor.


Member Function Documentation

bool DALT_Server::Entity::operator== ( const Entity & other ) const
 

equality operator. useful for stl operations on Entity containers.

Parameters:
other  


Member Data Documentation

vector< int > DALT_Server::Entity::coordinates
 

relative coordinates; the absolute coordinates are kept in the map.

int DALT_Server::Entity::id
 

unique id of the entity.

bool DALT_Server::Entity::is_ready
 

true if the entity is ready to start a new cycle.

string DALT_Server::Entity::type
 

type of the entity.

bool DALT_Server::Entity::use_coord_in_eq
 

if true will include the coordinates in comparison (false by default).


The documentation for this class was generated from the following file:
Generated at Thu Jan 31 15:22:41 2002 for DALT Server by doxygen1.2.8 written by Dimitri van Heesch, © 1997-2001