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: Weapons/Weapons.cpp
- Revision:
- 22:053c11a202e1
- Parent:
- 20:febd920ec29e
- Child:
- 23:cc44e26c08fa
--- a/Weapons/Weapons.cpp Tue May 05 16:16:06 2020 +0000 +++ b/Weapons/Weapons.cpp Wed May 06 11:24:22 2020 +0000 @@ -47,6 +47,11 @@ return pos; } +void Weapons::set_pos_one(Vector2D pos){ + position_x_bullet_ = pos.x; + position_y_bullet_ = pos.y; +} + Vector2D Weapons::get_pos_two(){ Vector2D pos = {position_x_bullet_+1,position_y_bullet_}; return pos;