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.

55 lines
930 B

  1. #include "Point.h"
  2. Point::Point(uint32_t y, uint32_t x, int img) {
  3. // TODO: implement constructor
  4. // should copy x,y and image
  5. }
  6. Point::~Point() {
  7. // TODO: implement destructor
  8. // should hide the point (hint: function for this already exists)
  9. }
  10. void Point::setPoint(uint32_t y, uint32_t x) {
  11. // TODO: implement this setter
  12. }
  13. uint32_t Point::getX() const {
  14. // TODO: implement this getter
  15. }
  16. uint32_t Point::getY() const {
  17. // TODO: implement this getter
  18. }
  19. void Point::moveUp() {
  20. // TODO: implement me
  21. }
  22. void Point::moveDown() {
  23. // TODO: implement me
  24. }
  25. void Point::moveLeft() {
  26. // TODO: implement me
  27. }
  28. void Point::moveRight() {
  29. // TODO: implement me
  30. }
  31. int Point::getImg() const {
  32. return img_;
  33. }
  34. void Point::setImg(int image){
  35. img_ = image;
  36. }
  37. void Point::print() const {
  38. Graphics::get().printChar(y_, x_, img_);
  39. }
  40. void Point::clear() {
  41. img_ = ' ';
  42. print();
  43. }