Some improvments to Game test

This commit is contained in:
valtermiari 2023-03-16 17:06:44 +01:00
parent 6840297c08
commit ce714db3f1
4 changed files with 66 additions and 37 deletions

View file

@ -7,6 +7,7 @@ class Point {
public:
int x, y;
Point() {}
Point(int _x, int _y) : x(_x), y(_y) {}
};
@ -21,6 +22,8 @@ private:
public:
Player() {}
Player(string n, Point pos, Point s, Point dir)
: name(n), position(pos.x, pos.y), size(s.x, s.y), direction(dir.x, dir.y)
{}