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
BulletS/BulletS.h@15:dde4ce4bf7fe, 2020-04-06 (annotated)
- Committer:
- josh_ohara
- Date:
- Mon Apr 06 15:37:02 2020 +0000
- Revision:
- 15:dde4ce4bf7fe
- Parent:
- 14:e88bcf5c0887
- Child:
- 16:987f72d9bb8f
Cover for ship completed. Next task is to add timeout to the ship bullet
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| josh_ohara | 2:c2316b659b97 | 1 | |
| josh_ohara | 11:c174d84e4866 | 2 | #include "mbed.h" |
| josh_ohara | 11:c174d84e4866 | 3 | #include "N5110.h" |
| josh_ohara | 11:c174d84e4866 | 4 | #include "Gamepad.h" |
| josh_ohara | 11:c174d84e4866 | 5 | #include "Bullet.h" |
| josh_ohara | 11:c174d84e4866 | 6 | #include <vector> |
| josh_ohara | 2:c2316b659b97 | 7 | |
| josh_ohara | 11:c174d84e4866 | 8 | class BulletS |
| josh_ohara | 11:c174d84e4866 | 9 | { |
| josh_ohara | 11:c174d84e4866 | 10 | public: |
| josh_ohara | 11:c174d84e4866 | 11 | BulletS(); |
| josh_ohara | 11:c174d84e4866 | 12 | ~BulletS(); |
| josh_ohara | 11:c174d84e4866 | 13 | void init(); |
| josh_ohara | 11:c174d84e4866 | 14 | void render(N5110 &lcd); |
| josh_ohara | 12:be491ab6e742 | 15 | void update(Gamepad &pad, N5110 &lcd, int shipx, int shipy); |
| josh_ohara | 14:e88bcf5c0887 | 16 | vector<Bullet> get_vector(); |
| josh_ohara | 14:e88bcf5c0887 | 17 | void set_hit(int i, bool x); |
| josh_ohara | 15:dde4ce4bf7fe | 18 | void flag_set(); |
| josh_ohara | 11:c174d84e4866 | 19 | |
| josh_ohara | 11:c174d84e4866 | 20 | private: |
| josh_ohara | 11:c174d84e4866 | 21 | vector<Bullet> bullet_vector; |
| josh_ohara | 11:c174d84e4866 | 22 | int X; |
| josh_ohara | 11:c174d84e4866 | 23 | int Y; |
| josh_ohara | 15:dde4ce4bf7fe | 24 | int Shoot; |
| josh_ohara | 15:dde4ce4bf7fe | 25 | Ticker ticker; |
| josh_ohara | 11:c174d84e4866 | 26 | }; |