Yang Zhenye 201199680

Dependencies:   mbed

Rooney/Rooney.h

Committer:
yangzhenye
Date:
2020-05-14
Revision:
5:fcad75e9b9e1
Parent:
4:eb8dca1dc341
Child:
6:4abef55fee88

File content as of revision 5:fcad75e9b9e1:

#ifndef ROONEY_H
#define ROONEY_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
enum rooneybody{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);
void draw_gate(N5110 &lcd);
bool collisicon_flag();

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

private:

int _player_x;
int _player_y;
bool _c_flag;
int _speed;
rooneybody body;
};
#endif