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.
Dependencies: mbed
Alien/Alien.h
- Committer:
- josh_ohara
- Date:
- 2020-05-14
- Revision:
- 24:ff5af5a013b5
- Parent:
- 20:0b6f1cfc5be6
- Child:
- 27:eb755a345b1f
File content as of revision 24:ff5af5a013b5:
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
#include "AlienBulletS.h"
class Alien
{
public:
void init(int x, int y, int size, int level);
void render(N5110 &lcd);
Vector2D get_position();
void update(int step_x, int remainder_x, Gamepad &pad, int counter, int level);
void set_life(bool x);
bool get_life();
void flag_set(int counter, int level);
vector<AlienBullet> get_bullet_vector();
void set_bullet_hit(int i, bool hit);
private:
int X;
int Y;
bool Alive;
int Speed;
float Size;
int StartX;
int StartY;
bool Shoot;
AlienBulletS alien_bullet_vector;
};