ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el18ajst

Dependencies:   mbed

Revision:
9:62fe47a1374f
Parent:
8:0c6d6ed55851
Child:
12:c557b6c9b17a
--- a/Bullets/Bullets.cpp	Fri May 22 16:54:10 2020 +0000
+++ b/Bullets/Bullets.cpp	Sat May 23 13:26:19 2020 +0000
@@ -2,6 +2,7 @@
 Serial pcb(USBTX, USBRX);
 Bullets::Bullets(int ex, int wy, Direction d)
 {
+    _dir = 0;
     _x = ex;
     _y = wy;
     if (d == N) {
@@ -52,4 +53,9 @@
 int Bullets::get_y(){
     return _y;
     }
+    
+void Bullets::dead(){
+       _x = 2147483647;
+       _y = 1000;
+}
     
\ No newline at end of file