class for bullet in Car_race game

Bullet.h

Committer:
fy14aaz
Date:
2017-04-17
Revision:
8:89a98a3d7233
Parent:
6:581257752de1
Child:
11:61bbec4ede2c

File content as of revision 8:89a98a3d7233:

#ifndef BULLET_H
#define BULLET_H

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


class Bullet
{

public:
    Bullet();
    ~Bullet();
    void init(Vector2D _CarHead);
    void draw(N5110 &lcd);
    void clearBullet(N5110 &lcd);
    void update(N5110 &lcd,int _bulletDirection);
    void destroyObstacles(N5110 &lcd);
  //  void accident(N5110 &lcd);

private:
    
    Vector2D _CarHead;
    int _bullet_x;
    int _bullet_y;
    int _speed;
    
};
#endif