00001 #ifndef __ANIMALPARAM_HPP__ 00002 #define __ANIMALPARAM_HPP__ 00003 00004 #include "vector2D.hpp" 00005 00006 #define ANIMAL_STATE_DEAD 0 //< stan martwy \see _state */ 00007 #define ANIMAL_STATE_LIVE 1 //< stan zywy \see _state */ 00008 00009 00017 class AnimalParam { 00018 protected: 00019 Vector2D _pos; //< polozenie, wspolrzedne */ 00020 int _state; //< wg ANIMAL_STATE_* */ 00021 double _V; //< predkosc biezaca [m/s] */ 00022 double _a; //< przyspieszenie biezace [m^2/s] */ 00023 double _E; //< energia biezaca */ 00024 double _delta; //< biezaca orienacja [rad] */ 00025 00026 00027 public: 00032 AnimalParam(); 00033 00038 Vector2D getPos() const; 00039 00044 void setPos(Vector2D &vec); 00045 00050 int getState() const; 00051 00056 void setState(int state); 00057 00062 double getV() const; 00063 00068 void setV(double V); 00069 00074 double geta() const; 00075 00080 double seta(double a); 00081 00086 double getE() const; 00087 00092 void setE(double E); 00093 00098 double getDelta() const; 00099 00104 void setDelta(double delta); 00105 00106 00107 00108 }; 00109 00110 #endif 00111