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.
Dependencies: mbed
Diff: shot/shot.h
- Revision:
- 10:02ab3324be6c
- Parent:
- 9:62d6559f0d50
- Child:
- 11:494cc44777fe
--- a/shot/shot.h Sat May 09 08:27:07 2020 +0000 +++ b/shot/shot.h Sun May 10 05:16:51 2020 +0000 @@ -34,7 +34,7 @@ //random pos void init_pos(shot_posandtype* i); //increase number of shots along with time - void gen_shot(); + void init_shot(); //moving function void update(); @@ -45,6 +45,8 @@ void set_size(int size); ////mutators int get_size(); + + void gen_shot(int flag); private: std::vector<shot_posandtype> _p;