publish my project

Dependencies:   mbed

Me/Me.h

Committer:
dongyuhu
Date:
2020-04-29
Revision:
6:49e77bcc975c
Parent:
2:7d45920b427f
Child:
7:4b92c1ee6231

File content as of revision 6:49e77bcc975c:

#ifndef ME_H
#define ME_H


#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
                       //head file referenced from ball.h in Pong Example
/** Me Class  
* @brief Me
* @author dongyuhu  
* @date April, 2020 
*/ 
class Me
{
public:

    Me();
    ~Me();
    void init(int x,int y,int height,int width);
    void draw(N5110 &lcd);
    void update(Direction d);
    Vector2D get_pos();

private:

    int _height;    //3   The colltroller is 3 by 3
    int _width;     //3         
    int _x;    
    int _y;
    int _speed;

};
#endif