Yuheng Huo / Mbed 2 deprecated hyh_copy_copy

Dependencies:   mbed FXOS8700CQ

Engine/engine.h

Committer:
Neowless
Date:
2020-05-15
Revision:
3:31ff7b3e2005
Parent:
2:cc9d8ec2e1f4

File content as of revision 3:31ff7b3e2005:

/** My Life Class
* @dudge the situation of the game 
* @author Huo Yuheng
* @date May, 2020
*/
#ifndef ENGINE_H
#define ENGINE_H

#include "chara.h"
#include "life.h"
#include "Bitmap.h"
#include "N5110.h"
#include "Gamepad.h"

/** details of obscale */
struct obs{
    int x;
    int y;
    int width;
    int height;
    int *data;
};

/** the situation of the player */
enum events{
    DEAD,
    NONE,
};
class engine{
    public:
    void init();
    /** check situation */
    events event_check(chara &p, obs &b, Gamepad &pad);
    /** making random obscale */
    int randomobs();
};
#endif