Some improvments to Game test
This commit is contained in:
parent
6840297c08
commit
ce714db3f1
4 changed files with 66 additions and 37 deletions
|
|
@ -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)
|
||||
{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue