Yuheng Huo / Mbed 2 deprecated hyh_copy

Dependencies:   mbed FXOS8700CQ

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers engine.h Source File

engine.h

00001 /** My Life Class
00002 * @dudge the situation of the game 
00003 * @author Huo Yuheng
00004 * @date May, 2020
00005 */
00006 #ifndef ENGINE_H
00007 #define ENGINE_H
00008 
00009 #include "chara.h"
00010 #include "life.h"
00011 #include "Bitmap.h"
00012 #include "N5110.h"
00013 #include "Gamepad.h"
00014 
00015 /** details of obscale */
00016 struct obs{
00017     int x;
00018     int y;
00019     int width;
00020     int height;
00021     int *data;
00022 };
00023 
00024 /** the situation of the player */
00025 enum events{
00026     DEAD,
00027     NONE,
00028 };
00029 class engine{
00030     public:
00031     void init();
00032     /** check situation */
00033     events event_check(chara &p, obs &b, Gamepad &pad);
00034     /** making random obscale */
00035     int randomobs();
00036 };
00037 #endif
00038