ELEC2645 (2018/19) / Mbed 2 deprecated el17st

Dependencies:   mbed FATFileSystem

Revision:
18:14e5391beccf
Parent:
17:7d4d8905b608
Child:
19:065207c07c3c
--- a/CaMove/CaMove.h	Wed May 08 00:30:09 2019 +0000
+++ b/CaMove/CaMove.h	Wed May 08 01:49:54 2019 +0000
@@ -155,8 +155,10 @@
      *
      */
     int get_treg();
-    /** Function that initilizes chasing Charater Models. */
-    void AIinit();
+    /** Function that initilizes chasing Charater Models. 
+     *@param chaser Enter Integer to select chaser (1-Death Zone , 2- Girl (slow), 4-Girl (fast), other-Ghost)
+     */
+    void AIinit(int chaser);
     /** Function that spawns the chasing Charater.
      *
      *@param x The x-location where Charater will Spawn.
@@ -183,6 +185,7 @@
     int _h;
     int _v;
     short int _itr;
+    bool LowerH, UpperH, MidH, LowerV, UpperV, MidV;
     //Vector for storing interactive region x - y locations.
     std::vector<int> _vreg;
     //Volatile variables for ISR Interrupts
@@ -193,6 +196,13 @@
     bool enabled;
     int _ch;
     int _cv;
+    int increment;
+    
+    void check_collision(bool c1,bool c2,bool c3,bool c4);
+    void render_chaser(Bitmap &lcd,int chaser);
+    void set_statements(int Vvalue);
+    void check_sides(int Vvalue);
+    void set_treg(int Vvalue);
 };
 
 #endif
\ No newline at end of file