ELEC2645 (2018/19) / Mbed 2 deprecated el17aio

Dependencies:   mbed

Revision:
42:ee13e1d103d8
Parent:
40:90c7a893d513
--- a/Weapons/Weapons.h	Wed May 08 09:22:16 2019 +0000
+++ b/Weapons/Weapons.h	Wed May 08 11:18:40 2019 +0000
@@ -14,10 +14,10 @@
     ~Weapons();
     
     /* Initialize the class with the ship position */
-    void init(int ship_xpos, int ship_ypos, int ship_width);
+    void init(int ship_xpos, int ship_ypos, int ship_width,N5110 *lcd, Gamepad *pad);
     
     /* Draw the missle */
-    void draw(N5110 &lcd,Gamepad &pad,int shipno,Vector2D closest);
+    void draw(int shipno,Vector2D closest);
     
     /* Gets the projectiles position */
     Vector2D get_pos(int shipno);
@@ -36,6 +36,9 @@
     void set_pos(int xpos, int ypos);
     
     private:
+    Gamepad *_pad;
+    N5110 *_lcd;
+    
     Enemy _enemy;
     int reset;
     Vector2D _velocity;