Projectile Library

Projectile.h

Committer:
ll14c4p
Date:
2017-04-24
Revision:
1:2aee0cb1ebf9
Parent:
0:6914458c54cd
Child:
2:b079859c59ba

File content as of revision 1:2aee0cb1ebf9:

#ifndef PROJECTILE_H
#define PROJECTILE_H

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


class Projectile
{
    public:
    Projectile();
    ~Projectile();
    void init(int size,int speed);
    void draw(N5110 &lcd);
    void set_velocity(Vector2D v);
    Vector2D get_velocity();
    Vector2D get_pos();
    void set_pos(Vector2D p);
    void update();
    
    private:
    
    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
};
#endif