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@11:c174d84e4866, 2020-04-01 (annotated)
- Committer:
- josh_ohara
- Date:
- Wed Apr 01 11:23:25 2020 +0000
- Revision:
- 11:c174d84e4866
- Parent:
- 8:86cb9a9f8a73
- Child:
- 12:be491ab6e742
Bullet vector completed
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 | 11:c174d84e4866 | 15 | void update(Gamepad &pad, int shipx, int shipy); |
| josh_ohara | 11:c174d84e4866 | 16 | |
| josh_ohara | 11:c174d84e4866 | 17 | private: |
| josh_ohara | 11:c174d84e4866 | 18 | vector<Bullet> bullet_vector; |
| josh_ohara | 11:c174d84e4866 | 19 | int X; |
| josh_ohara | 11:c174d84e4866 | 20 | int Y; |
| josh_ohara | 11:c174d84e4866 | 21 | int Shot; |
| josh_ohara | 11:c174d84e4866 | 22 | }; |