Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.
Dependencies: mbed
Diff: Spaceship/Spaceship.cpp
- Revision:
- 110:755a3a75d9b0
- Parent:
- 109:2137a6a63840
- Child:
- 111:e9a048d06690
--- a/Spaceship/Spaceship.cpp Sun May 05 13:31:19 2019 +0000 +++ b/Spaceship/Spaceship.cpp Sun May 05 13:39:24 2019 +0000 @@ -44,3 +44,12 @@ _y_spaceship=0; } + +int Spaceship::get_pos_x() +{ + return _x_spaceship; +} +int Spaceship::get_pos_y() +{ + return _y_spaceship; +}