Steven Mahasin / Mbed 2 deprecated DreamDungeon

Dependencies:   mbed MotionSensor

Entity/Player/Bullets/Bullets.h

Committer:
el17sm
Date:
2019-05-07
Revision:
38:09832e662803
Parent:
34:1d5b4da3935e

File content as of revision 38:09832e662803:

#ifndef BULLETS_H
#define BULLETS_H
#include "Entity.h"
#define MAX_BULLETS 15

class Bullets : public Entity
{

public:
    // Constructor
    Bullets(float, float, int);

    // Functions
    virtual void move(float, float, char * map, bool * doorways);
    virtual void draw(N5110 &lcd);
    virtual void take_damage(int damage);
    bool out_of_bounds_check(char * map, bool * doorways);

private:
    // Private Functions
    char * get_frame();
    // Member Variable
    int direction;
};

const char bullets_sprite[3][3] = {{1,1,1},
    {1,1,1},
    {1,1,1}
};

#endif