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.
Engine/engine.h
- Committer:
- Neowless
- Date:
- 2020-05-15
- Revision:
- 2:cc9d8ec2e1f4
- Parent:
- 1:48b0bf0bcda8
- Child:
- 3:31ff7b3e2005
File content as of revision 2:cc9d8ec2e1f4:
#ifndef ENGINE_H
#define ENGINE_H
#include "chara.h"
#include "life.h"
#include "Bitmap.h"
#include "N5110.h"
#include "Gamepad.h"
struct obs{
int x;
int y;
int width;
int height;
int *data;
};
enum events{
DEAD,
FIRE,
ELMININATE,
NONE,
};
class engine{
public:
void init();
events evet_check(chara &p, obs &b, Gamepad &pad);
void fire(int x,int y);
int randomobs();
};
#endif