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:
- 45:fe5fc85a5c73
- Parent:
- 43:500b8cff3715
- Child:
- 51:2231e2e141b9
--- a/Ship/Ship.cpp Wed May 08 16:46:21 2019 +0000 +++ b/Ship/Ship.cpp Thu May 09 03:56:41 2019 +0000 @@ -107,10 +107,11 @@ return ship_pos; } -void Ship::set_dimensions(int ship_width, int ship_height) +void Ship::set_parameters(int ship_width, int ship_height, int ship_speed) { _ship_width = ship_width; _ship_height = ship_height; + _ship_speed = ship_speed; } /****Note: if you make all the ships the same size, you could then creare a enum for them ship.[ enum class Ship {kestrel, devotion}; ]