Commit 1ac3b446 authored by kkrish's avatar kkrish

changed _isClosed datatype (double) to (int)

parent 923cfbd1
......@@ -46,7 +46,7 @@ using namespace std;
Obstacle::Obstacle()
{
_isClosed=0.0;
_isClosed=0;
_height=0.0;
_id=-1;
_caption="obstacle";
......@@ -72,12 +72,12 @@ void Obstacle::SetCaption(string caption)
_caption = caption;
}
double Obstacle::GetClosed() const
int Obstacle::GetClosed() const
{
return _isClosed;
}
void Obstacle::SetClosed(double closed)
void Obstacle::SetClosed(int closed)
{
_isClosed = closed;
}
......
......@@ -40,7 +40,7 @@ class Line;
class Obstacle {
private:
double _isClosed;
int _isClosed;
double _height;
int _id;
std::string _caption;
......@@ -64,12 +64,12 @@ public:
/**
* Set/Get the close state of the obstacle
*/
double GetClosed() const;
int GetClosed() const;
/**
* Set/Get the close state of the obstacle
*/
void SetClosed(double closed);
void SetClosed(int closed);
/**
* Set/Get the height of the obstacle.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment