ELEC2645 (2017/18) / Mbed 2 deprecated el17yw

Dependencies:   mbed

engine/engine.h

Committer:
RickYu
Date:
2018-04-12
Revision:
2:421fb0670c5c
Child:
3:1a134243e2f0

File content as of revision 2:421fb0670c5c:

#ifndef ENGINE_H
#define ENGINE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "rect.h"


#define GAP 2
class engine
{
public:
    engine();
    ~engine();
   
    void init(int rect_height,int speed,int rect_width);
    void read_input(Gamepad &pad);
    void update(Gamepad &pad);
    void draw(N5110 &lcd);

private:
    rect _rect;
    
    int _speed;
    int _recx;
    int _rect_height;
    int _rect_width;
    
   
    
    
    Direction _d;
    float _mag;


};




#endif