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.

27 lines
462 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. void setPoint(uint32_t y, uint32_t x);
  11. uint32_t getX() const;
  12. uint32_t getY() const;
  13. void moveUp();
  14. void moveDown();
  15. void moveLeft();
  16. void moveRight();
  17. int getImg() const;
  18. void setImg(int image);
  19. void print() const;
  20. void clear();
  21. };