Robot's source code

Dependencies:   mbed

Revision:
123:55e5e9acc541
Parent:
109:53918ba98306
--- a/Map/Obstacles/Obstacle.h	Thu May 07 14:18:07 2015 +0000
+++ b/Map/Obstacles/Obstacle.h	Mon May 11 20:32:11 2015 +0000
@@ -4,7 +4,7 @@
 class Obstacle
 {
     public:
-        Obstacle(float robotRadius);
+        Obstacle(float robotRadius,int id);
         virtual ~Obstacle();
         
         virtual int height(float x, float y) = 0;
@@ -21,8 +21,11 @@
         int getId(){return id;}
         void setId(int id){this->id = id;}
         
+        void activate(){active=true;}
+        void desactivate(){active=false;}
     protected:
         bool bigShape,smoothBigShape;
+        bool active;
         float robotRadius;
         
         int id;