ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Revision:
5:e5bb95fb308b
Parent:
4:18a1fc4c38e0
Child:
6:5bea67cc96f9
--- a/BulletS/BulletS.cpp	Sun Mar 22 18:51:00 2020 +0000
+++ b/BulletS/BulletS.cpp	Sun Mar 22 19:06:39 2020 +0000
@@ -1,15 +1,14 @@
 #include "BulletS.h"
-#include "Ship.cpp"
 
 Bullet::Bullet()
 {
 }
 
-void Bullet::init(int size, int speed)  {
+void Bullet::init(int size, int speed, int Height)  {
     Size = size;
     Speed = speed;
     X = WIDTH/2 - Size/2; //Middle of the ship
-    Y = HEIGHT - Height; //Top of the ship
+    Y = HEIGHT - Height; //Top of the ship Height is ship Height
 }
 
 void Bullet::draw(N5110 &lcd)