Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Enemy/Enemy.h
- Committer:
- Albutt
- Date:
- 2020-05-26
- Revision:
- 15:3dbb3f4d7ae6
- Parent:
- 14:2d7e41f46879
- Child:
- 21:3235ac9b6e7b
File content as of revision 15:3dbb3f4d7ae6:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Enemy
{
public:
Enemy(int seed);
~Enemy();
void draw(N5110 &lcd);
void update(int player_x, int player_y);
int get_x();
int get_y();
void reset(int seed, N5110 &lcd);
private:
void death_animation(N5110 &lcd);
int _x;
int _y;
int _speed;
int _four;
};