
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

class Ship
{
    
public: 
    void init(int y, int height, int width); //dimensions of the ship without shooter, y position is bottom of the screen
    void draw(N5110 &lcd); //Draws basic rectangle ship
    Vector2D get_position(); //Returns position of ship
    void update(Direction d,float mag); //Interface between joystick and ship control
    int get_height();
    int get_width();
    void set_life(int l);
    
private:
    int Height;
    int Width;
    int X;
    int Y; //y value of ship
    int Speed; //speed of ship
    bool Life;
};
