
Joshua O'hara 201291390
Dependencies: mbed
Cover/Cover.h@15:dde4ce4bf7fe, 2020-04-06 (annotated)
- Committer:
- josh_ohara
- Date:
- Mon Apr 06 15:37:02 2020 +0000
- Revision:
- 15:dde4ce4bf7fe
- Child:
- 21:970807533b10
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 | #include "Rock.h" |
josh_ohara | 15:dde4ce4bf7fe | 5 | #include <vector> |
josh_ohara | 15:dde4ce4bf7fe | 6 | |
josh_ohara | 15:dde4ce4bf7fe | 7 | class Cover |
josh_ohara | 15:dde4ce4bf7fe | 8 | { |
josh_ohara | 15:dde4ce4bf7fe | 9 | public: |
josh_ohara | 15:dde4ce4bf7fe | 10 | Cover(); |
josh_ohara | 15:dde4ce4bf7fe | 11 | ~Cover(); |
josh_ohara | 15:dde4ce4bf7fe | 12 | void init(int x, int y, int no_rocks); |
josh_ohara | 15:dde4ce4bf7fe | 13 | void create_cover(); |
josh_ohara | 15:dde4ce4bf7fe | 14 | void render(N5110 &lcd); |
josh_ohara | 15:dde4ce4bf7fe | 15 | void update(Gamepad &pad); |
josh_ohara | 15:dde4ce4bf7fe | 16 | vector<Rock> get_vector(); |
josh_ohara | 15:dde4ce4bf7fe | 17 | void set_life(int i, bool x); |
josh_ohara | 15:dde4ce4bf7fe | 18 | |
josh_ohara | 15:dde4ce4bf7fe | 19 | private: |
josh_ohara | 15:dde4ce4bf7fe | 20 | int X; |
josh_ohara | 15:dde4ce4bf7fe | 21 | int Y; |
josh_ohara | 15:dde4ce4bf7fe | 22 | int N; |
josh_ohara | 15:dde4ce4bf7fe | 23 | int CS; |
josh_ohara | 15:dde4ce4bf7fe | 24 | int RS; |
josh_ohara | 15:dde4ce4bf7fe | 25 | int S; |
josh_ohara | 15:dde4ce4bf7fe | 26 | vector<Rock> alien_cover; |
josh_ohara | 15:dde4ce4bf7fe | 27 | }; |