Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "Figure.hpp"
- Figure::Figure(int id, int x, int y){
- this->id = id;
- this->x = x;
- this->y = y;
- }
- void Figure::move(int new_x, int new_y){
- this->x = new_x;
- this->y = new_y;
- }
- int Figure::figure_id() const {
- return this->id;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement