Saltuk 212

Dependencies:   mbed KS0108

Bullet/Bullet.h

Committer:
Bilgin
Date:
2019-05-31
Revision:
0:c7dd8e13fa95

File content as of revision 0:c7dd8e13fa95:

#ifndef BULLET_H
#define BULLET_H

#include "mbed.h"

class Bullet{
    public:
        Bullet(short pixel, short x, short y, short dir);
        void move();
        Bullet* getNext();
        void setNext(Bullet* newNext);
        bool willBeRemoved();
        void getxy(short& xcor, short& ycor);
        void setCollision();
        short getDir();
        short x;
        short y;
        short dir;
        bool collided;
    
    private:
        short pxl;
        Bullet* next;
};
#endif