ELEC2645 (2018/19) / Mbed 2 deprecated el17m2h_public

Dependencies:   mbed

Revision:
33:de130e274391
Parent:
31:5c4acae51026
--- a/Bullet/Bullet.cpp	Thu May 09 11:21:53 2019 +0000
+++ b/Bullet/Bullet.cpp	Thu May 09 11:39:59 2019 +0000
@@ -27,21 +27,8 @@
     }
 }
 
-float Bullet::get_position_x()
-{
-    float p_x = _position_x;
-    return p_x;
-}
+float Bullet::get_position_x(){ float p_x = _position_x; return p_x; }
 
-float Bullet::get_position_y()
-{
-    float p_y = _position_y;
-    return p_y;
-}
+float Bullet::get_position_y(){ float p_y = _position_y; return p_y; }
 
-void Bullet::set_position(float pos_x, float pos_y)
-{
-    _position_x = pos_x;
-    _position_y = pos_y;
-}
-
+void Bullet::set_position(float pos_x, float pos_y) { _position_x = pos_x; _position_y = pos_y; }
\ No newline at end of file