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: SpaceInvaderEngine/SpaceInvaderEngine.h
- Revision:
- 35:517b56b010df
- Parent:
- 33:d8284dee58db
- Child:
- 37:90a0671d2ba7
--- a/SpaceInvaderEngine/SpaceInvaderEngine.h Mon May 18 16:43:08 2020 +0000
+++ b/SpaceInvaderEngine/SpaceInvaderEngine.h Mon May 18 19:26:06 2020 +0000
@@ -33,6 +33,7 @@
void alien_cover1_collision(Gamepad &pad, N5110 &lcd); //check for collision between the aliens and cover 1
void alien_cover2_collision(Gamepad &pad, N5110 &lcd); //check for collision between the aliens and cover 2
void alien_cover3_collision(Gamepad &pad, N5110 &lcd); //check for collision between the aliens and cover 3
+ void ship_powerup_collision(Gamepad &pad, N5110 &lcd);
//accessors and mutators//
void get_ship_pos(); //return the position of ths ship
bool get_armada_life(); //return the life value of the alien armada
@@ -54,6 +55,7 @@
int _alien_number; //number of aliens
int _armada_column_size; //number of of aliens per column of armada
int _armada_row_size; //number of aliens per row of armada
+ int _powerup;
int _ship_x; //x position of ship
int _ship_y; //y position of ship