Mortal Kombat Game ELEC2645
Dependencies: mbed N5110 ShiftReg Joystick
Enemy.h
- Committer:
- ozy
- Date:
- 2021-04-17
- Revision:
- 1:3bdadf6f6dbd
- Child:
- 5:889ad974b64d
File content as of revision 1:3bdadf6f6dbd:
#ifndef ENEMY_H #define ENEMY_H #include "mbed.h" #include "N5110.h" class Enemy { public: Enemy(); // constructor void draw(N5110 &lcd, float _x, float _y); // x-coordinate and y-coordinates used to update place of enemy on lcd void move_right(N5110 &lcd, float _x, float _y); // print move right animation void move_left(N5110 &lcd, float _x, float _y); // print move left animation void move_right2(N5110 &lcd, float _x, float _y); // 2nd move right animation to move legs void move_left2(N5110 &lcd, float _x, float _y); // 2nd move left animation to move legs void kick_right(N5110 &lcd, float _x, float _y); // enemy kick right void kick_left(N5110 &lcd, float _x, float _y); // enemy kick left void sword_left(N5110 &lcd, float _x, float _y); // enemy punch left void sword_right(N5110 &lcd, float _x, float _y); // enemy punch right }; #endif