Haoyan Zhang
/
el17h2z1
deemo1
Diff: StarcraftEngine/StarcraftEngine.h
- Revision:
- 3:1db91ad3ab84
- Parent:
- 1:8c48fb8ca5e0
- Child:
- 4:9fa0c5edd1a1
--- a/StarcraftEngine/StarcraftEngine.h Tue May 12 08:01:52 2020 +0000 +++ b/StarcraftEngine/StarcraftEngine.h Tue May 12 15:13:22 2020 +0000 @@ -7,6 +7,7 @@ #include "Battleship.h" #include "Laser.h" #include "Swarm.h" +#include "Boss.h" // gap from edge of screen #define GAP 2 @@ -25,7 +26,7 @@ StarcraftEngine(); ~StarcraftEngine(); - void init(int Battleship_height, int Battleship_width, int Laser_height, int Laser_width, int Swarm_height, int Swarm_width, int speed); + void init(int Battleship_height, int Battleship_width, int Laser_height, int Laser_width, int Swarm_height, int Swarm_width,int Boss_height, int Boss_width, int speed); void read_input(Gamepad &pad); int find_life(); int find_score(); @@ -34,6 +35,7 @@ private: void check_Swarm_collisions(Gamepad &pad); + void check_Boss_collisions(Gamepad &pad); void check_goal(Gamepad &pad); void print_scores(N5110 &lcd); @@ -53,6 +55,10 @@ int _Swarm_height; int _Swarm_width; + Boss _Boss; + int _Boss_height; + int _Boss_width; + Direction _d; float _mag; };