Harry Rance 200925395 Embedded Systems Project

Dependencies:   mbed

UserShip.h

Committer:
harryrance
Date:
2017-04-30
Revision:
3:43970d8d642e
Parent:
1:95d7dd44bb0d
Child:
6:dca8b5e2ebe5

File content as of revision 3:43970d8d642e:

#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 draw_default_ship(N5110 &lcd);
  void draw_ship_1(N5110 &lcd);
  void draw_ship_2(N5110 &lcd);
  void draw_ship_3(N5110 &lcd);
  void draw_ship_4(N5110 &lcd);
  void update(Direction d, float mag);
  Vector2D get_pos();
  void set_pos(Vector2D p);

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

};
#endif