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.

39 lines
715 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. int Point::getImg() const {
  20. return img_;
  21. }
  22. void Point::setImg(int image){
  23. img_ = image;
  24. }
  25. void Point::print() const {
  26. Graphics::get().printChar(y_, x_, img_);
  27. }
  28. void Point::clear() {
  29. img_ = ' ';
  30. print();
  31. }