a

Dependencies:   mbed

Committer:
Jagang
Date:
Sun Dec 14 17:49:01 2014 +0000
Revision:
0:85567bbcebdb
New

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Jagang 0:85567bbcebdb 1
Jagang 0:85567bbcebdb 2 #ifndef OBSTABLE_H_
Jagang 0:85567bbcebdb 3 #define OBSTABLE_H_
Jagang 0:85567bbcebdb 4
Jagang 0:85567bbcebdb 5 class Obstacle
Jagang 0:85567bbcebdb 6 {
Jagang 0:85567bbcebdb 7 public:
Jagang 0:85567bbcebdb 8 static int lastId;
Jagang 0:85567bbcebdb 9
Jagang 0:85567bbcebdb 10 Obstacle(float robotWidth);
Jagang 0:85567bbcebdb 11
Jagang 0:85567bbcebdb 12 virtual int height(float x, float y) = 0;
Jagang 0:85567bbcebdb 13
Jagang 0:85567bbcebdb 14 void setBigShape(bool bs) {bigShape = bs;}
Jagang 0:85567bbcebdb 15 bool isBigShape() {return bigShape;}
Jagang 0:85567bbcebdb 16
Jagang 0:85567bbcebdb 17 int getId() {return id;}
Jagang 0:85567bbcebdb 18
Jagang 0:85567bbcebdb 19 private:
Jagang 0:85567bbcebdb 20 bool bigShape;
Jagang 0:85567bbcebdb 21 float robotWidth;
Jagang 0:85567bbcebdb 22
Jagang 0:85567bbcebdb 23 int id;
Jagang 0:85567bbcebdb 24 };
Jagang 0:85567bbcebdb 25
Jagang 0:85567bbcebdb 26 #endif