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@16:987f72d9bb8f, 2020-05-01 (annotated)
- Committer:
- josh_ohara
- Date:
- Fri May 01 12:56:33 2020 +0000
- Revision:
- 16:987f72d9bb8f
- Parent:
- 15:dde4ce4bf7fe
Ship bullet timer added
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 | 16:987f72d9bb8f | 15 | void update(Gamepad &pad, N5110 &lcd, int shipx, int shipy, int counter); |
| josh_ohara | 14:e88bcf5c0887 | 16 | vector<Bullet> get_vector(); |
| josh_ohara | 14:e88bcf5c0887 | 17 | void set_hit(int i, bool x); |
| josh_ohara | 16:987f72d9bb8f | 18 | void flag_set(int counter); |
| 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 | 16:987f72d9bb8f | 26 | int OldCounter; |
| josh_ohara | 11:c174d84e4866 | 27 | }; |