ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

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}; ]