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: Explosion/Explosion.cpp
- Revision:
- 82:3211b31e9421
- Parent:
- 36:27aa597db3d2
- Child:
- 85:87bc28b151d8
diff -r 78c461e6770b -r 3211b31e9421 Explosion/Explosion.cpp --- a/Explosion/Explosion.cpp Mon May 25 15:59:14 2020 +0000 +++ b/Explosion/Explosion.cpp Mon May 25 18:39:51 2020 +0000 @@ -26,12 +26,12 @@ void Explosion::draw_explosion(N5110 &lcd) { // Draws each explotion frame depending on state // Draw circle one - if(animation_fsm[fsm_counter_].draw_circle_one){ + if(animation_fsm[fsm_counter_].draw_circle_one) { lcd.drawCircle(position_x_, position_y_,explosion_radius_ + 1, animation_fsm[fsm_counter_].circle_one); } // Draw circle two - if(animation_fsm[fsm_counter_].draw_circle_two){ + if(animation_fsm[fsm_counter_].draw_circle_two) { lcd.drawCircle(position_x_, position_y_,(explosion_radius_ - 2), animation_fsm[fsm_counter_].circle_two); } @@ -44,6 +44,6 @@ draw_counter++; } -int Explosion::get_explosion_radius(){ +int Explosion::get_explosion_radius() { return explosion_radius_; } \ No newline at end of file