Kaif Kutchwala 201267448 ELEC2645 Project
Dependencies: mbed
Diff: Game/Game.h
- Revision:
- 16:1f196a0e12be
- Parent:
- 15:5bf3f951d337
- Child:
- 17:2fbe40177b9c
--- a/Game/Game.h Mon May 18 18:03:43 2020 +0000 +++ b/Game/Game.h Tue May 19 01:17:31 2020 +0000 @@ -33,6 +33,10 @@ /** @brief updates speed based on score */ void updateSpeed(); + //accessors and mutators + void set_highscore(int score); + int get_highscore(); + private: //functions /** @brief takes pointer input for aim on x-axis */ @@ -57,13 +61,16 @@ void print_goal_message(int n); //variables int _score; + int _highscore; int _lives; + int _new_lives_threshold; int _level; float _x_val; float _y_val; int _shot_x; int _shot_y; float _speed; + float _new_speed_threshold; bool _is_goal; };