ELEC2645 (2018/19) / Mbed 2 deprecated el17zl

Dependencies:   mbed

Fork of el17zl by Zhenwen Liao

Revision:
6:6b083e22cb53
Parent:
5:b50ce6160013
Child:
7:6f8aeadc4370
--- a/PushingEngine/PushingEngine.h	Tue Apr 09 12:46:02 2019 +0000
+++ b/PushingEngine/PushingEngine.h	Thu Apr 11 13:42:34 2019 +0000
@@ -18,13 +18,18 @@
 
     void init(int box1_x,int box1_y,int box2_x,int box2_y,int ppl_x,int ppl_y);
     void read_input(Gamepad &pad);
-    void update(Gamepad &pad);
-    void draw(N5110 &lcd);
+    void update(Gamepad &pad,int barrier_x,int barrier_y);
+    void draw(N5110 &lcd,int barrier_x,int barrier_y);
+    
 
 private:
 
     void check_ppl_box1_touching(Gamepad &pad);
     void check_ppl_box2_touching(Gamepad &pad);
+    void hold_ppl_box1_wall(Gamepad &pad);
+    void hold_ppl_box2_wall(Gamepad &pad);
+    void ppl_box_cover(Gamepad &pad);
+    
 
     Box _b1;
     Box _b2;
@@ -51,6 +56,8 @@
     //parameter for touching 
     int _s; //ppl with b1
     int _r; //ppl with b2
+    int _temp;
+    int _t;
 
 };