ELEC2645 (2017/18) / Mbed 2 deprecated el17yw

Dependencies:   mbed

rec/rect.h

Committer:
RickYu
Date:
2018-04-15
Revision:
3:1a134243e2f0
Parent:
2:421fb0670c5c
Child:
5:0a116644cce2

File content as of revision 3:1a134243e2f0:

#ifndef RECT_H
#define RECT_H

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

public:
   rect();
   ~rect();
   void init(int x,int y);
   void draw(N5110 &lcd);
   void update(Direction d,float mag);
   Vector2D get_pos();

private:
    int rect_x;
    int rect_y;
    int rect_speed;

};
    
    
#endif