class for bullet in Car_race game

Bullet.h

Committer:
fy14aaz
Date:
2017-04-13
Revision:
5:fd945bf405dc
Parent:
4:a32443aee8f8
Child:
6:581257752de1

File content as of revision 5:fd945bf405dc:

#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 accident(N5110 &lcd);

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