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:
- 111:e9a048d06690
- Parent:
- 110:755a3a75d9b0
- Child:
- 130:4ce67451d0c1
--- a/Spaceship/Spaceship.cpp Sun May 05 13:39:24 2019 +0000 +++ b/Spaceship/Spaceship.cpp Sun May 05 13:41:51 2019 +0000 @@ -53,3 +53,9 @@ { return _y_spaceship; } + +void Spaceship::set_pos(int x, int y) +{ + _x_spaceship = x; + _y_spaceship = y; +}