200943373MAZE
Dependencies: mbed
Fork of 200943373MAZE by
Background/Background.h@0:df4347043adf, 2017-05-04 (annotated)
- Committer:
- hongyunAHN
- Date:
- Thu May 04 11:25:43 2017 +0000
- Revision:
- 0:df4347043adf
- Child:
- 1:bd92ef8d00ac
200943373 hongyun AHN
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
hongyunAHN | 0:df4347043adf | 1 | #ifndef BACKGROUND_H |
hongyunAHN | 0:df4347043adf | 2 | #define BACKGROUND_H |
hongyunAHN | 0:df4347043adf | 3 | |
hongyunAHN | 0:df4347043adf | 4 | #include "mbed.h" |
hongyunAHN | 0:df4347043adf | 5 | #include "N5110.h" |
hongyunAHN | 0:df4347043adf | 6 | #include "Gamepad.h" |
hongyunAHN | 0:df4347043adf | 7 | #include "Player.h" |
hongyunAHN | 0:df4347043adf | 8 | |
hongyunAHN | 0:df4347043adf | 9 | class Background |
hongyunAHN | 0:df4347043adf | 10 | { |
hongyunAHN | 0:df4347043adf | 11 | |
hongyunAHN | 0:df4347043adf | 12 | public: |
hongyunAHN | 0:df4347043adf | 13 | Background(); |
hongyunAHN | 0:df4347043adf | 14 | ~Background(); |
hongyunAHN | 0:df4347043adf | 15 | |
hongyunAHN | 0:df4347043adf | 16 | void init( ); |
hongyunAHN | 0:df4347043adf | 17 | void read_input(Gamepad &pad); |
hongyunAHN | 0:df4347043adf | 18 | void update(Gamepad &pad,N5110 &lcd); |
hongyunAHN | 0:df4347043adf | 19 | void draw(N5110 &lcd); |
hongyunAHN | 0:df4347043adf | 20 | |
hongyunAHN | 0:df4347043adf | 21 | private: |
hongyunAHN | 0:df4347043adf | 22 | |
hongyunAHN | 0:df4347043adf | 23 | void check_goal(Gamepad &pad,N5110 &lcd); |
hongyunAHN | 0:df4347043adf | 24 | void print_scores(N5110 &lcd); |
hongyunAHN | 0:df4347043adf | 25 | |
hongyunAHN | 0:df4347043adf | 26 | Player _player; |
hongyunAHN | 0:df4347043adf | 27 | |
hongyunAHN | 0:df4347043adf | 28 | Direction _d; |
hongyunAHN | 0:df4347043adf | 29 | float _mag; |
hongyunAHN | 0:df4347043adf | 30 | |
hongyunAHN | 0:df4347043adf | 31 | }; |
hongyunAHN | 0:df4347043adf | 32 | |
hongyunAHN | 0:df4347043adf | 33 | #endif |