Nemesis game, stats

Bullet.h

Committer:
musallambseiso
Date:
2017-04-02
Revision:
6:fb678d095e0a
Parent:
Ship1.h@ 5:b822aaa6200d

File content as of revision 6:fb678d095e0a:

#ifndef BULLET_H
#define BULLET_H

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

class Bullet
{

public:
    Bullet();
    ~Bullet();
    void init(N5110 &lcd, Gamepad &pad, int speed);
    void draw(N5110 &lcd);
    void update();
    
    void set_velocity(Vector2D v);
    Vector2D get_velocity();
    Vector2D get_pos();
    void set_pos(Vector2D p);
    
private:
    Friendly _friendly;
    Vector2D _velocity;
    int _x;
    int _y;
};

#endif