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
Rock/Rock.h@15:dde4ce4bf7fe, 2020-04-06 (annotated)
- Committer:
- josh_ohara
- Date:
- Mon Apr 06 15:37:02 2020 +0000
- Revision:
- 15:dde4ce4bf7fe
- Child:
- 31:27c938ec2a11
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 | 15:dde4ce4bf7fe | 1 | #include "mbed.h" |
| josh_ohara | 15:dde4ce4bf7fe | 2 | #include "N5110.h" |
| josh_ohara | 15:dde4ce4bf7fe | 3 | #include "Gamepad.h" |
| josh_ohara | 15:dde4ce4bf7fe | 4 | |
| josh_ohara | 15:dde4ce4bf7fe | 5 | class Rock |
| josh_ohara | 15:dde4ce4bf7fe | 6 | { |
| josh_ohara | 15:dde4ce4bf7fe | 7 | public: |
| josh_ohara | 15:dde4ce4bf7fe | 8 | void init(int x, int y, int size); |
| josh_ohara | 15:dde4ce4bf7fe | 9 | void render(N5110 &lcd); |
| josh_ohara | 15:dde4ce4bf7fe | 10 | Vector2D get_position(); |
| josh_ohara | 15:dde4ce4bf7fe | 11 | void set_life(bool x); |
| josh_ohara | 15:dde4ce4bf7fe | 12 | bool get_life(); |
| josh_ohara | 15:dde4ce4bf7fe | 13 | |
| josh_ohara | 15:dde4ce4bf7fe | 14 | private: |
| josh_ohara | 15:dde4ce4bf7fe | 15 | int X; |
| josh_ohara | 15:dde4ce4bf7fe | 16 | int Y; |
| josh_ohara | 15:dde4ce4bf7fe | 17 | bool Alive; |
| josh_ohara | 15:dde4ce4bf7fe | 18 | int Size; |
| josh_ohara | 15:dde4ce4bf7fe | 19 | |
| josh_ohara | 15:dde4ce4bf7fe | 20 | }; |