No Description

obstacle.h 551B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef AVOID_H
  2. #define AVOID_H
  3. #include <QWidget>
  4. #include <string>
  5. using namespace std;
  6. ///
  7. /// Class that has the attributes of the obstacles such as:
  8. /// * X, Y coordinates
  9. /// * Name
  10. /// * Setters and Getters
  11. ///
  12. class Obstacle : public QWidget
  13. {
  14. Q_OBJECT
  15. public:
  16. explicit Obstacle(QWidget *parent = 0);
  17. int x_obstacle;
  18. int y_obstacle;
  19. string name;
  20. string getObs();
  21. void setObs(string);
  22. int getXObstacle();
  23. int getYObstacle();
  24. void setXObstacle(int);
  25. void setYObstacle(int);
  26. };
  27. #endif // AVOID_H