Laila Al Badwawi 200906179 SpaceInvaders I declare this my own independent work and understand the university rules on plagiarism.

Dependencies:   mbed

Alien/Alien.h

Committer:
fy14lkaa
Date:
2019-04-20
Revision:
28:4786e81ce3e3
Child:
51:cb644365d9a3

File content as of revision 28:4786e81ce3e3:

#ifndef Alien_H
#define Alien_H



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


class Alien
{
    public:
    Alien();
    ~Alien();
    
    void init(int size,int speed);
    void draw(N5110 &lcd);
        void update();
           /// accessors and mutators
    void set_velocity(Vector2D v);
    Vector2D get_velocity();
    Vector2D get_pos();
    void set_pos(Vector2D p);
    
private:

    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
};
#endif