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:
- 15:3571beaaeed8
- Parent:
- 13:eb60628db8bf
- Child:
- 16:cf2bfada3adf
--- a/shot/shot.h Fri May 15 08:04:39 2020 +0000 +++ b/shot/shot.h Fri May 15 12:21:45 2020 +0000 @@ -36,10 +36,10 @@ /**produce a random_pos(21,0)(42,0)(63,0)(21,45)(42,45)(63,45) *@param vector_i(shot_posandtype*) */ - void init_pos(shot_posandtype* i); + void init_pos(shot_posandtype *i); /**move shots in their own directions*/ - void update(N5110 &lcd); + void update(); /**generate shots as time goes on*/ void update_shot(); @@ -60,16 +60,21 @@ *@param size(int) */ void set_size(int size); + + void set_shot(int x, int y, int type, int Direction); /**mutators get size *@return current size */ int get_size(); + + Vector2D get_shot(); private: std::vector<shot_posandtype> _p; int _size; float _size_f; + Vector2D _shot_pos; }; #endif