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
Diff: Alien/Alien.h
- Revision:
- 18:828e9f6ddfdb
- Parent:
- 17:8b1d16d56ad2
- Child:
- 20:0b6f1cfc5be6
--- a/Alien/Alien.h Fri May 01 14:24:20 2020 +0000
+++ b/Alien/Alien.h Fri May 01 14:44:08 2020 +0000
@@ -1,6 +1,7 @@
#include "mbed.h"
#include "N5110.h"
#include "Gamepad.h"
+#include "AlienBulletS.h"
class Alien
{
@@ -8,9 +9,10 @@
void init(int x, int y, int size);
void render(N5110 &lcd);
Vector2D get_position();
- void update(int step_x, int remainder_x, Gamepad &pad);
+ void update(int step_x, int remainder_x, Gamepad &pad, int counter);
void set_life(bool x);
bool get_life();
+ void flag_set(int counter);
private:
int X;
@@ -21,4 +23,5 @@
int StartX;
int StartY;
bool Shoot;
+ AlienBulletS alien_bullet_vector;
};
\ No newline at end of file