Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Map/Objectifs/Objectif.h
- 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