ELEC2645 (2019/20) / Mbed 2 deprecated ELEC2645_Project_el19tb

Dependencies:   mbed

Revision:
5:6e3afee7eac3
diff -r aae7f8d4ab78 -r 6e3afee7eac3 Frog/Chicken.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Frog/Chicken.cpp	Thu May 07 05:35:50 2020 +0000
@@ -0,0 +1,16 @@
+#include "Chicken.h"
+ 
+Serial pc(USBTX, USBRX);
+
+//every chicken object will accept x, y, and width (square)
+Chicken::Chicken(int x, int y, int width){
+    this->x = x;
+    this->y = y;
+    this->width = width;
+    
+    left_side = x;
+    right_side = width + x;
+    up = y;
+    down = width + y;
+}
+