ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

spase_ship/space_ship.h

Committer:
fy14lkaa
Date:
2019-04-21
Revision:
47:bd5a03dba379
Parent:
46:4cdec96221cd
Child:
48:bb683d6df5a1

File content as of revision 47:bd5a03dba379:

#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;
    

};
#endif


































#endif