Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
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