Mortal Kombat Game ELEC2645

Dependencies:   mbed N5110 ShiftReg Joystick

Revision:
6:a1a7dc264fed
Parent:
5:889ad974b64d
Child:
7:737fb0c3dbef
diff -r 889ad974b64d -r a1a7dc264fed Enemy.h
--- a/Enemy.h	Tue Apr 20 09:01:35 2021 +0000
+++ b/Enemy.h	Wed Apr 21 22:56:55 2021 +0000
@@ -4,29 +4,29 @@
 #include "mbed.h"
 #include "N5110.h"
 
-class Enemy 
+class Enemy
 {
 public:
-     Enemy();  // constructor 
+     Enemy();  // constructor
      int get_x();        // get x co-ordinate
      int get_y();        // get y co-ordinate
      void set_x(int x);  // set x co-ordinate
      void set_y(int y);  // set y co-ordinate
      void add_x(int x);  // add to the x co-ordinate
      void add_y(int y);  // add to the y co-ordinate
-    
-     void draw(N5110 &lcd); 
+
+     void draw(N5110 &lcd);
      void move_right(N5110 &lcd); // print move right animation
      void move_left(N5110 &lcd); // print move left animation
      void move_right2(N5110 &lcd); // 2nd move right animation to move legs
      void move_left2(N5110 &lcd); // 2nd move left animation to move legs
-     void kick_right(N5110 &lcd); // enemy kick right 
-     void kick_left(N5110 &lcd); // enemy kick left 
-     void sword_left(N5110 &lcd); // enemy punch left 
-     void sword_right(N5110 &lcd); // enemy punch right 
-     
+     void kick_right(N5110 &lcd); // enemy kick right
+     void kick_left(N5110 &lcd); // enemy kick left
+     void sword_left(N5110 &lcd); // enemy punch left
+     void sword_right(N5110 &lcd); // enemy punch right
+
 private:
     int _x, _y;    // co-ordinates of the enemy
 };
 
-#endif 
\ No newline at end of file
+#endif
\ No newline at end of file