
Time is good
Fork of Robot2016_2-0 by
Diff: Map/Objectifs/Objectif.h
- Revision:
- 20:30942f018252
- Parent:
- 18:0f1fefe78266
--- a/Map/Objectifs/Objectif.h Thu Jan 07 15:54:49 2016 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,35 +0,0 @@ -#ifndef OBJECTIF_H -#define OBJECTIF_H - -#include "defines.h" - -#ifdef PLAN_A - #include "Asserv.h" -#else - #include "planB.h" -#endif - -class Objectif -{ -public: - Objectif(float x, float y, float theta); - - virtual void run() = 0; - bool isDone(){return done;} - float getX(){return x;} - float getY(){return y;} - float getTheta(){return theta;} - - int getId(){return id;} - void setId(int id){this->id = id;} - - virtual int isActive(){return active;} - void activate(){active=true;} - void desactivate(){active=false;} -protected: - float x,y,theta; - bool done,active; - int id; -}; - -#endif