Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Ship/Ship.cpp
- Revision:
- 13:e114d362186d
- Parent:
- 12:47578eb9ea73
- Child:
- 14:88ca5b1a111a
--- a/Ship/Ship.cpp Wed Apr 10 11:01:19 2019 +0000 +++ b/Ship/Ship.cpp Wed Apr 10 12:04:07 2019 +0000 @@ -86,13 +86,10 @@ return ship_pos; } -void Ship::set_ship(int ship_width, int ship_height, int ship_xpos, int ship_ypos) +void Ship::set_ship(int ship_width, int ship_height) { _ship_width = ship_width; _ship_height = ship_height; - _ship_xpos = ship_xpos; - _ship_xpos = ship_ypos; - } /****Note: if you make all the ships the same size, you could then creare a enum for them ship.[ enum class Ship {basic, devotion}; ]