ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Revision:
21:970807533b10
Parent:
20:0b6f1cfc5be6
Child:
25:823b1a997a0c
--- a/Ship/Ship.h	Fri May 01 19:41:24 2020 +0000
+++ b/Ship/Ship.h	Tue May 12 15:33:50 2020 +0000
@@ -4,6 +4,7 @@
 #include "mbed.h"
 #include "N5110.h"
 #include "Gamepad.h"
+#include "BulletS.h"
 
 class Ship
 {
@@ -14,10 +15,13 @@
     void init(int height, int width);        //dimensions of the ship without shooter, y position is bottom of the screen
     void render(N5110 &lcd);                          //Draws basic rectangle ship
     Vector2D get_position();                        //Returns position of ship
-    void update(Direction d, float mag);            //Interface between joystick and ship control
+    void update(Direction d, float mag, Gamepad &pad, N5110 &lcd, int counter);            //Interface between joystick and ship control
     int get_height();
     int get_width();
     void set_life(bool life);
+    bool get_life();
+    vector<Bullet> get_bullet_vector();
+    void set_bullet_hit(int i, bool hit);
     
 private:
     int Height;
@@ -26,6 +30,7 @@
     int Y;                                           //y value of ship
     int Speed;                                       //speed of ship
     bool Life;
+    BulletS ship_bullet_vector;
 };
 
 #endif
\ No newline at end of file