class for bullet in Car_race game

Bullet.h

Committer:
fy14aaz
Date:
2017-05-01
Revision:
11:61bbec4ede2c
Parent:
8:89a98a3d7233
Child:
13:dd1ccafe3972

File content as of revision 11:61bbec4ede2c:

#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 update(N5110 &lcd,int bulletDirection);
    void clearBullet(N5110 &lcd);
    void destroyObstacles(N5110 &lcd);
  //  void accident(N5110 &lcd);

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