ARES / Mbed 2 deprecated Robot 2016

Dependencies:   mbed

Revision:
0:b127c787a51b
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Map/Objectifs/Objectif.h	Sun May 24 12:30:47 2015 +0000
@@ -0,0 +1,29 @@
+#ifndef OBJECTIF_H
+#define OBJECTIF_H
+
+#include "includes.h"
+
+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