ELEC2645 (2019/20)
/
ELEC2645_Project_el18jb
test 1 doc
Ennemy/Enemy.h
- Committer:
- joebarhouch
- Date:
- 2020-05-27
- Revision:
- 9:9830d3a78572
- Parent:
- 8:d19b30a6cd69
- Child:
- 10:9317a62bd4d0
File content as of revision 9:9830d3a78572:
#ifndef ENEMY_H #define ENEMY_H #include "mbed.h" #include "N5110.h" #include "Gamepad.h" #include "Bitmap.h" class Enemy { public: Enemy(int spawnX, int spawnY); ~Enemy(); void draw(N5110 &lcd); void update(int eYpos, bool efall); bool fell(); void set_pos(int x, int y); Vector2D get_pos(); private: int _enX; int _enY; bool eDir; bool _fell; }; #endif