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.
Diff: Engine.h
- Revision:
- 9:0efc8d7cdcf7
- Parent:
- 8:1c0bc1a08153
- Child:
- 10:b2dd5f484f98
diff -r 1c0bc1a08153 -r 0efc8d7cdcf7 Engine.h
--- a/Engine.h Sun Apr 09 12:46:39 2017 +0000
+++ b/Engine.h Mon Apr 10 16:44:12 2017 +0000
@@ -24,20 +24,20 @@
Engine();
~Engine();
- bool dead;
int collisions;
+ int wave_counter;
void init(int friendly_width,int friendly_height,int ship_size,int speed,N5110 &lcd, Gamepad &pad);
void read_input(Gamepad &pad);
void checker(N5110 &lcd, Gamepad &pad);
void update(N5110 &lcd, Gamepad &pad);
void draw(N5110 &lcd);
- void ships_gen(N5110 &lcd);
- void shoot(N5110 &lcd, Gamepad &pad, int speed);
- void death(N5110 &lcd, Gamepad &pad);
+ //void shoot(N5110 &lcd, Gamepad &pad, int speed);
private:
-
+
+ void grid_draw(N5110 &lcd);
+ void ships_draw(N5110 &lcd);
void check_wall_collision(Gamepad &pad);
void check_friendly_collisions(Gamepad &pad);
void check_pass(Gamepad &pad);
@@ -49,6 +49,7 @@
void check_death6(N5110 &lcd, Gamepad &pad);
void check_death(N5110 &lcd, Gamepad &pad);
void game_over(N5110 &lcd, Gamepad &pad);
+ void wave_draw(N5110 &lcd);
Friendly _friendly;