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-23
- Revision:
- 9:62fe47a1374f
- Parent:
- 8:0c6d6ed55851
- Child:
- 10:71ced616a64f
File content as of revision 9:62fe47a1374f:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
class Enemy
{
public:
Enemy(int seed);
~Enemy();
void init();
void draw(N5110 &lcd);
void update(int player_x, int player_y);
int get_x();
int get_y();
void reset(int seed);
void dead();
private:
bool _dead;
int _x;
int _y;
int _speed;
int four;
};