Projectile Library

Projectile.h

Committer:
ll14c4p
Date:
2017-05-02
Revision:
3:70c599d9f191
Parent:
2:b079859c59ba
Child:
4:977109f7b9f6

File content as of revision 3:70c599d9f191:

#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();
    void draw(N5110 &lcd);
    void set_velocity(Vector2D v);
    Vector2D get_velocity();
    Vector2D get_pos();
    void update();
    int playerx;
    int playery;
    
    private:
    int m;
    Vector2D _velocity;
    int _size;
    int _x;
    int _y;
    
};
#endif