ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

spase_ship/space_ship.h

Committer:
fy14lkaa
Date:
2019-04-21
Revision:
49:5b797f126e5c
Parent:
48:bb683d6df5a1
Child:
50:f538885a788b

File content as of revision 49:5b797f126e5c:

#ifndef SPACE_SHIP_H
#define SPACE_SHIP_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "SpaceInvadersEngine.h"
#include "Alien.h"
#include "bullet.h"

class space_ship
{
    
    public:
    
     space_ship();
    ~space_ship();
    void init(int x,int height,int width);
     void draw(N5110 &lcd);
    void update(Direction d,float mag);
      void add_score();
       int get_score();
      Vector2D get_pos();
    
private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _speed;
    int _score;

};
#endif


































#endif