Yang Zhenye 201199680

Dependencies:   mbed

Committer:
yangzhenye
Date:
Wed May 13 14:55:07 2020 +0000
Revision:
4:eb8dca1dc341
Child:
5:fcad75e9b9e1
advance

Who changed what in which revision?

UserRevisionLine numberNew contents of line
yangzhenye 4:eb8dca1dc341 1 #ifndef ROONEY_H
yangzhenye 4:eb8dca1dc341 2 #define ROONEY_H
yangzhenye 4:eb8dca1dc341 3
yangzhenye 4:eb8dca1dc341 4 #include "mbed.h"
yangzhenye 4:eb8dca1dc341 5 #include "N5110.h"
yangzhenye 4:eb8dca1dc341 6 #include "Gamepad.h"
yangzhenye 4:eb8dca1dc341 7 enum ronneybody{left, right, stand};
yangzhenye 4:eb8dca1dc341 8 class player
yangzhenye 4:eb8dca1dc341 9 {
yangzhenye 4:eb8dca1dc341 10 public:
yangzhenye 4:eb8dca1dc341 11 // Constructor and destructor.
yangzhenye 4:eb8dca1dc341 12 /**
yangzhenye 4:eb8dca1dc341 13 * @brief Constructor @details Non user specified.
yangzhenye 4:eb8dca1dc341 14 */
yangzhenye 4:eb8dca1dc341 15 player();
yangzhenye 4:eb8dca1dc341 16 /**
yangzhenye 4:eb8dca1dc341 17 * @brief Destructor @details Non user specified.
yangzhenye 4:eb8dca1dc341 18 */
yangzhenye 4:eb8dca1dc341 19 ~player();
yangzhenye 4:eb8dca1dc341 20
yangzhenye 4:eb8dca1dc341 21 void init();
yangzhenye 4:eb8dca1dc341 22 void set_palyer_x(float joy_x int speed);
yangzhenye 4:eb8dca1dc341 23 bool collisicon_flag();
yangzhenye 4:eb8dca1dc341 24
yangzhenye 4:eb8dca1dc341 25 int *get_form(rooneybody);
yangzhenye 4:eb8dca1dc341 26 int get_y();
yangzhenye 4:eb8dca1dc341 27 int get_x();
yangzhenye 4:eb8dca1dc341 28 int get_speed();
yangzhenye 4:eb8dca1dc341 29
yangzhenye 4:eb8dca1dc341 30 private:
yangzhenye 4:eb8dca1dc341 31
yangzhenye 4:eb8dca1dc341 32 int_player_x;
yangzhenye 4:eb8dca1dc341 33 int_player_y;
yangzhenye 4:eb8dca1dc341 34 bool_c_flag;
yangzhenye 4:eb8dca1dc341 35 int_speed;
yangzhenye 4:eb8dca1dc341 36 }
yangzhenye 4:eb8dca1dc341 37 #endif