Harry Rance 200925395 Embedded Systems Project

Dependencies:   mbed

UserShip.h

Committer:
harryrance
Date:
2017-04-11
Revision:
0:c9bf674fe0c7
Child:
1:95d7dd44bb0d

File content as of revision 0:c9bf674fe0c7:

#ifndef USERSHIP_H
#define USERSHIP_H

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

class UserShip
{
public:
  UserShip();
  ~UserShip();
  void initialise(int y, int x_origin, int y_origin);
  void draw(N5110 &lcd);
  void update(Direction d, float mag);
  Vector2D get_pos();

private:
  int _x_origin;
  int _y_origin;
  int _x;
  int _y;
  int _speed;

};
#endif