Helios Lyons 201239214

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers Invader.h Source File

Invader.h

00001 #ifndef INVADER_H
00002 #define INVADER_H
00003 
00004 #include "mbed.h"
00005 #include "N5110.h"
00006 #include "Gamepad.h"
00007 
00008 /** Invader.h
00009 * @brief Defines variables and methods for the Invader.
00010 * @author Helios A. Lyons
00011 * @date April, 2020
00012 */
00013  
00014 class Invader
00015 {
00016 public:
00017  
00018     Invader();
00019     ~Invader();
00020     
00021     void init(int sprite, int hitpoints);
00022     void draw(N5110 &lcd);
00023     
00024     //void set_hitpoints(int hitpoints);
00025     
00026     //int get_hitpoints();
00027     
00028     int hit();
00029     
00030     //void set_death(bool death);
00031     
00032     bool get_death();
00033     
00034     // void set_sprite(int sprite);
00035     
00036     Vector2D get_pos();
00037  
00038 private:
00039 
00040     int _height;
00041     int _width;
00042     int _x;
00043     int _y;
00044     int _hitpoints;
00045     bool _death;
00046     int _sprite;
00047  
00048 };
00049 #endif