Helios Lyons / Mbed 2 deprecated ELEC2645_Project_mc18hal

Dependencies:   mbed

Invaders/Invader.h

Committer:
helioslyons
Date:
2020-04-10
Revision:
4:c644522ff9d9

File content as of revision 4:c644522ff9d9:

#ifndef INVADER_H
#define INVADER_H

#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"

/** Invader.h
* @brief Defines variables and methods for the Invader.
* @author Helios A. Lyons
* @date April, 2020
*/
 
class Invader
{
public:
 
    Invader();
    ~Invader();
    
    void init(int sprite, int hitpoints);
    void draw(N5110 &lcd);
    
    //void set_hitpoints(int hitpoints);
    
    //int get_hitpoints();
    
    int hit();
    
    //void set_death(bool death);
    
    bool get_death();
    
    // void set_sprite(int sprite);
    
    Vector2D get_pos();
 
private:

    int _height;
    int _width;
    int _x;
    int _y;
    int _hitpoints;
    bool _death;
    int _sprite;
 
};
#endif