ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18jkeo

Dependencies:   mbed

Revision:
8:86cb9a9f8a73
Parent:
7:06a2558155f0
Child:
11:c174d84e4866
--- a/BulletS/BulletS.cpp	Tue Mar 24 16:44:48 2020 +0000
+++ b/BulletS/BulletS.cpp	Thu Mar 26 15:24:49 2020 +0000
@@ -1,32 +1,32 @@
-#include "BulletS.h"
+//   #include "BulletS.h"
 
-Bullet::Bullet()
-{
-}
+//   Bullet::Bullet()
+//   {
+//   }
 
-void Bullet::init(int size, int x)  {
-    Size = size;
-    Speed = 0;
-    X = x;                                      //x=Middle of the ship
-    Y = HEIGHT;                                      //y=Top of the ship Height is ship Height
-}
+//   void Bullet::init(int size, int x)  {
+//       Size = size;
+//       Speed = 0;
+//       X = x;                                      //x=Middle of the ship
+//       Y = HEIGHT;                                      //y=Top of the ship Height is ship Height
+//   }
 
-void Bullet::draw(N5110 &lcd)
-{
-    lcd.drawRect(X,Y,Size,Size,FILL_BLACK);
-}
-
-void Bullet::update() {
-    if(pad.A_pressed()) {
-        Speed = 1;                            //shoots bullet if pad a pressed
-        Y -= Speed;
-    } 
-}
+//   void Bullet::draw(N5110 &lcd)
+//   {
+//       lcd.drawRect(X,Y,Size,Size,FILL_BLACK);
+//   }
+//   
+//   void Bullet::update() {
+//       if(pad.A_pressed()) {
+//           Speed = 1;                            //shoots bullet if pad a pressed
+//           Y -= Speed;
+//       } 
+//   }
     
-Vector2D Bullet::get_position() {
-    Vector2D p = {X,Y};
-    return p;    
-}
+//   Vector2D Bullet::get_position() {
+//       Vector2D p = {X,Y};
+//       return p;    
+//   }
 
 //void Bullet::set_hit(bool hit) {
 //    bool Hit == hit;