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.

25 lines
480 B

  1. #pragma once
  2. #include "Graphics.h"
  3. class Point{
  4. private:
  5. int x;
  6. int y;
  7. graphics_input img;
  8. public:
  9. Point();
  10. Point(int y = 10, int x = 10, graphics_input img = '*');
  11. ~Point();
  12. void setPoint(int y, int x);
  13. int getX();
  14. int getY();
  15. void moveUp();
  16. void moveDown();
  17. void moveLeft();
  18. void moveRight();
  19. graphics_input getImg();
  20. void setImg(graphics_input image);
  21. void printImg();
  22. void erase();
  23. void randomize();
  24. };