ELEC2645 (2018/19) / Mbed 2 deprecated fy14lkaa

Dependencies:   mbed

Bullet/bullet.h

Committer:
fy14lkaa
Date:
2019-05-05
Revision:
98:663e584183bf
Parent:
92:8a1b14488ca5
Child:
99:2fb516e8568d

File content as of revision 98:663e584183bf:






#ifndef BULLET_H
#define BULLET_H

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





class Bullet
{
public:
    Bullet();
    ~Bullet();

    void init(int x_bullet,int y_bullet, int speed_bullet, int fired_bullet);
    void draw(N5110 &lcd);
    void update(Direction d,float mag);
    void set_pos(int x, int y);
    int get_pos_y();
    int get_pos_x();

private:


    int _x_bullet;
    int _y_bullet;
    
    int  _fired_bullet;
    
    int _speed_bullet;
    Direction d;
    float mag;
    
};
#endif