James Heavey
/
EL17JH
FINAL VERSION
Diff: BreakoutEngine/BreakoutEngine.h
- Revision:
- 123:39740c246fc2
- Parent:
- 119:473cac51ddf0
- Child:
- 126:1ac594b5f91a
--- a/BreakoutEngine/BreakoutEngine.h Wed May 08 15:43:57 2019 +0000 +++ b/BreakoutEngine/BreakoutEngine.h Wed May 08 15:59:38 2019 +0000 @@ -16,13 +16,13 @@ #include <cstdlib> // For srand() and rand() #define GAP_TOP 10 -#define GAP 2 +#define GAP 2 /* BreajoutEngine Class @author James Heavey, University of Leeds -@brief Controls the Breakout game +@brief Controls the Breakout game @date May 2019 -*/ +*/ class BreakoutEngine { @@ -52,7 +52,7 @@ void set_paddle_motion(bool tilt, float sens); void check_life_powerup(); void reset_paddle_lives(); - + private: void check_wall_collisions(Gamepad &pad); @@ -62,7 +62,7 @@ void check_powerup_collisions(Gamepad &pad); void print_scores(N5110 &lcd); void dec_num_left(); - + int _paddle_width; int _paddle_height; int _ball_size; @@ -70,25 +70,25 @@ int _index; int _multiplier; double _cool_time; - + int _paddley; int _number_left; int _prev_score; int _score; - + Direction _d; float _mag; - + Paddle _paddle; - + Ball _ball; - + std::list<Laser> listofLasers; std::list<Laser>::iterator it_L; - + std::list<Brick> listofBricks; - std::list<Brick>::iterator it_R; - + std::list<Brick>::iterator it_R; + Brick _brick11; Brick _brick12; Brick _brick13; @@ -107,11 +107,11 @@ Brick _brick34; Brick _brick35; Brick _brick36; - + Laser _laser1; Laser _laser2; Laser _laser3; - + Life_Powerup _powerup; };