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: BulletS/BulletS.cpp
- Revision:
- 14:e88bcf5c0887
- Parent:
- 12:be491ab6e742
- Child:
- 15:dde4ce4bf7fe
--- a/BulletS/BulletS.cpp Wed Apr 01 16:00:44 2020 +0000
+++ b/BulletS/BulletS.cpp Fri Apr 03 11:19:53 2020 +0000
@@ -28,7 +28,18 @@
new_bullet.init(X,Y);
bullet_vector.push_back(new_bullet);
}
- for (int i =0; i < bullet_vector.size(); i++) {
+ for (int i = 0; i < bullet_vector.size(); i++) {
bullet_vector[i].update(pad,lcd);
}
-}
\ No newline at end of file
+}
+
+vector<Bullet> BulletS::get_vector()
+{
+ vector<Bullet> v = bullet_vector;
+ return v;
+}
+
+void BulletS::set_hit(int i, bool x)
+{
+ bullet_vector[i].set_hit(x);
+}