![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Li Ruofan 201199450
Dependencies: mbed Gamepad Joystick
Diff: myShip/spaceship.h
- Revision:
- 5:e3a9f0548922
- Parent:
- 3:cf9fead9c3f4
- Child:
- 6:cbd9e1f26a10
diff -r 1ebf8b8842e0 -r e3a9f0548922 myShip/spaceship.h --- a/myShip/spaceship.h Fri May 15 01:25:16 2020 +0000 +++ b/myShip/spaceship.h Fri May 15 19:57:40 2020 +0000 @@ -41,6 +41,15 @@ Vector2D get_speed(); Vector2D get_pos(); void set_pos(Vector2D p); + void set_pos(Vector2D p); + + void add_score(); + + int get_score(); + + void set_life(); + + int get_life(); private: Vector2D _velocity; @@ -49,5 +58,7 @@ int _width; int _height; int _speed; + int _score; + int _life; }; #endif \ No newline at end of file