Yuheng Huo / Mbed 2 deprecated hyh_copy_copy

Dependencies:   mbed FXOS8700CQ

Committer:
Neowless
Date:
Fri May 15 20:32:27 2020 +0000
Revision:
3:31ff7b3e2005
Parent:
2:cc9d8ec2e1f4
test;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Neowless 3:31ff7b3e2005 1 /** My Life Class
Neowless 3:31ff7b3e2005 2 * @dudge the situation of the game
Neowless 3:31ff7b3e2005 3 * @author Huo Yuheng
Neowless 3:31ff7b3e2005 4 * @date May, 2020
Neowless 3:31ff7b3e2005 5 */
Neowless 1:48b0bf0bcda8 6 #ifndef ENGINE_H
Neowless 1:48b0bf0bcda8 7 #define ENGINE_H
Neowless 1:48b0bf0bcda8 8
Neowless 2:cc9d8ec2e1f4 9 #include "chara.h"
Neowless 1:48b0bf0bcda8 10 #include "life.h"
Neowless 1:48b0bf0bcda8 11 #include "Bitmap.h"
Neowless 1:48b0bf0bcda8 12 #include "N5110.h"
Neowless 1:48b0bf0bcda8 13 #include "Gamepad.h"
Neowless 1:48b0bf0bcda8 14
Neowless 3:31ff7b3e2005 15 /** details of obscale */
Neowless 2:cc9d8ec2e1f4 16 struct obs{
Neowless 1:48b0bf0bcda8 17 int x;
Neowless 1:48b0bf0bcda8 18 int y;
Neowless 1:48b0bf0bcda8 19 int width;
Neowless 1:48b0bf0bcda8 20 int height;
Neowless 1:48b0bf0bcda8 21 int *data;
Neowless 1:48b0bf0bcda8 22 };
Neowless 2:cc9d8ec2e1f4 23
Neowless 3:31ff7b3e2005 24 /** the situation of the player */
Neowless 1:48b0bf0bcda8 25 enum events{
Neowless 1:48b0bf0bcda8 26 DEAD,
Neowless 1:48b0bf0bcda8 27 NONE,
Neowless 1:48b0bf0bcda8 28 };
Neowless 1:48b0bf0bcda8 29 class engine{
Neowless 1:48b0bf0bcda8 30 public:
Neowless 1:48b0bf0bcda8 31 void init();
Neowless 3:31ff7b3e2005 32 /** check situation */
Neowless 3:31ff7b3e2005 33 events event_check(chara &p, obs &b, Gamepad &pad);
Neowless 3:31ff7b3e2005 34 /** making random obscale */
Neowless 2:cc9d8ec2e1f4 35 int randomobs();
Neowless 1:48b0bf0bcda8 36 };
Neowless 1:48b0bf0bcda8 37 #endif
Neowless 1:48b0bf0bcda8 38