Saltuk 212

Dependencies:   mbed KS0108

Player/Player.h

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

File content as of revision 0:c7dd8e13fa95:

#ifndef PLAYER_H
#define PLAYER_H

#include "mbed.h"
#include "Bullet.h"
#include "Tank.h"

class Player{
    public:
        Player(short pixel, short x, short y, short dir);
        void move(short i);
        bool willBeRemoved();
        Bullet* fire();
        void getxy(short& xcor, short& ycor);
        bool checkCollisions(Bullet* bulletHead, Tank* tankHead);
        short getLife();
        short getDir();
        short x;
        short y;
        short dir;
        bool collided;
        short life;
        
    private:
        short pxl;
};
#endif