Entity.h

Go to the documentation of this file.
00001 #ifndef _ENTITY_H_
00002 #define _ENTITY_H_ 1
00003 
00004 class Entity
00005 {
00006 public:
00007     // Enumerations/Typedefenitions
00008     typedef enum  { COLOR_UNKNOWN, PURE_RED, PURE_GREEN, PURE_BLUE } Color;
00009    
00010 
00014     typedef enum  { TYPE_UNKNOWN, ROBOT, GOAL, SUBJECT } Type;
00015 
00016 
00017     // Constructors/destructors:
00018     Entity( void );
00019     virtual ~Entity( void );
00020     
00021     // Accessors:
00022 //public:
00023     short getX(void);
00024     short getY(void);
00025     void setX( short _x );
00026     void setY( short _y );
00027     short getAngle( void );
00028     void setAngle( short _angle );
00029 
00030     Color getColor( void );
00031     void setColor( Color _color );
00032 
00033     Type getType( void );
00034     void setType( Type _type );
00035     bool operator < ( Entity &);
00036     // Attributes
00037 private:
00038     Color color;
00039     Type type;
00040     short x, y;
00041     short angle;
00042 };
00043 
00044 #endif //_ENTITY_H_

Generated on Wed Nov 29 01:27:41 2006 by  doxygen 1.4.6