Projectile Library

Projectile.h

Committer:
ll14c4p
Date:
2017-04-29
Revision:
2:b079859c59ba
Parent:
1:2aee0cb1ebf9
Child:
3:70c599d9f191

File content as of revision 2:b079859c59ba:

#ifndef PROJECTILE_H
#define PROJECTILE_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "Player.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();
    int playerx;
    int playery;
    
    private:
    
    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
    
};
#endif