You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
476 B

  1. #pragma once
  2. #include "../input-output/Graphics.h"
  3. class Point{
  4. private:
  5. uint32_t x_;
  6. uint32_t y_;
  7. int img_;
  8. public:
  9. Point(uint32_t y, uint32_t x, int img = '*');
  10. ~Point();
  11. void setPoint(uint32_t y, uint32_t x);
  12. uint32_t getX() const;
  13. uint32_t getY() const;
  14. void moveUp();
  15. void moveDown();
  16. void moveLeft();
  17. void moveRight();
  18. int getImg() const;
  19. void setImg(int image);
  20. void print() const;
  21. void clear();
  22. };