ELEC2645 (2018/19) / Mbed 2 deprecated el17aj

Dependencies:   mbed

Revision:
2:88019d96e1da
Parent:
1:3916f272663e
Child:
3:97cd7b3d89d0
diff -r 3916f272663e -r 88019d96e1da Enemy/Enemy.h
--- a/Enemy/Enemy.h	Sun Apr 21 19:02:21 2019 +0000
+++ b/Enemy/Enemy.h	Wed Apr 24 12:38:53 2019 +0000
@@ -12,29 +12,58 @@
 @brief Controls the Enemy Sprites in the Wall Defence game
 @date April 2017
 */ 
+
+
+enum Action { waiting, moving, attacking, dying };
+
 class Enemy
 {
 
+
+
+
 public:
     Enemy();
     ~Enemy();
+    
+    
+
+    Action enemAction;
     void init(float timeToAttack);
     void draw(N5110 &lcd);
-    void update();
+    void update(int fps);
     /// accessors and mutators
     Vector2D get_pos();
     void set_pos(Vector2D p);
+    
+    
     void set_attack(bool attack);
     float get_timeToAttack();
     
+     
+    void set_current_action(Action act);
+    
     void set_alive(bool alive);
     bool get_alive();
+    
+    void set_value(float value);
+    float get_value();
+    
 private:
 
     int _x;
     int _y;
+    
     bool _attack;
     bool _alive;
     float _timeToAttack;
+        
+    float _animationTick; 
+    Action currentAction;
+    float _value;
+    
+
+    
+    
 };
 #endif
\ No newline at end of file