Robot's source code

Dependencies:   mbed

Map/Obstacles/Obstacle.h

Committer:
Jagang
Date:
2015-05-05
Revision:
109:53918ba98306
Child:
123:55e5e9acc541

File content as of revision 109:53918ba98306:

#ifndef OBSTACLE_H_
#define OBSTACLE_H_

class Obstacle
{
    public:
        Obstacle(float robotRadius);
        virtual ~Obstacle();
        
        virtual int height(float x, float y) = 0;
        
        void setBigShape(bool bs) {bigShape = bs;}
        bool isBigShape() {return bigShape;}
        
        void setSmoothBigShape(bool sbs) {smoothBigShape = sbs;}
        bool isSmoothBigShape() {return smoothBigShape;}
        
        void setRobotRadius(float robotRadius) {this->robotRadius = robotRadius;}
        float getRobotRadius() {return robotRadius;}
        
        int getId(){return id;}
        void setId(int id){this->id = id;}
        
    protected:
        bool bigShape,smoothBigShape;
        float robotRadius;
        
        int id;
};

#endif