Advertisement
Guest User

Untitled

a guest
Dec 12th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include "Figure.hpp"
  2.  
  3. Figure::Figure(int id, int x, int y){
  4. this->id = id;
  5. this->x = x;
  6. this->y = y;
  7. }
  8.  
  9. void Figure::move(int new_x, int new_y){
  10. this->x = new_x;
  11. this->y = new_y;
  12. }
  13.  
  14. int Figure::figure_id() const {
  15. return this->id;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement