Yang Zhenye 201199680

Dependencies:   mbed

Rooney/Rooney.h

Committer:
yangzhenye
Date:
2020-05-13
Revision:
4:eb8dca1dc341
Child:
5:fcad75e9b9e1

File content as of revision 4:eb8dca1dc341:

#ifndef ROONEY_H
#define ROONEY_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
enum ronneybody{left, right, stand};
class player
{
public:
 // Constructor and destructor.
  /**
  * @brief Constructor @details Non user specified.
  */
player();
  /**
  * @brief Destructor @details Non user specified.
  */
~player();

void init();
void set_palyer_x(float joy_x int speed);
bool collisicon_flag();

int *get_form(rooneybody);
int get_y();
int get_x();
int get_speed();

private:

int_player_x;
int_player_y;
bool_c_flag;
int_speed;
}
#endif