![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
Game codes for Pokemon Academy Yiu Fai Kwok - 201198802 I have read the University Regulations on Plagiarism and state that the work covered by this declaration is my own and does not contain any unacknowledged work from other sources.
Dependencies: mbed FXOS8700CQ mbed-rtos
Start/Start.h@5:bc0691d02fd5, 2019-04-08 (annotated)
- Committer:
- yfkwok
- Date:
- Mon Apr 08 00:41:25 2019 +0000
- Revision:
- 5:bc0691d02fd5
- Parent:
- 2:464c7e62d97d
- Child:
- 17:5d8ff39a0e49
8/4/2019 - Created Exam files
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yfkwok | 2:464c7e62d97d | 1 | #ifndef START_H |
yfkwok | 2:464c7e62d97d | 2 | #define START_H |
yfkwok | 2:464c7e62d97d | 3 | |
yfkwok | 2:464c7e62d97d | 4 | #include "N5110.h" |
yfkwok | 2:464c7e62d97d | 5 | #include "Gamepad.h" |
yfkwok | 2:464c7e62d97d | 6 | #include "Charmander.h" |
yfkwok | 2:464c7e62d97d | 7 | #include "Squirtle.h" |
yfkwok | 2:464c7e62d97d | 8 | #include "Bulbasaur.h" |
yfkwok | 2:464c7e62d97d | 9 | |
yfkwok | 2:464c7e62d97d | 10 | class Start |
yfkwok | 2:464c7e62d97d | 11 | { |
yfkwok | 2:464c7e62d97d | 12 | |
yfkwok | 2:464c7e62d97d | 13 | public: |
yfkwok | 2:464c7e62d97d | 14 | Start(); |
yfkwok | 2:464c7e62d97d | 15 | ~Start(); |
yfkwok | 2:464c7e62d97d | 16 | |
yfkwok | 5:bc0691d02fd5 | 17 | void init(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 18 | void starter_update(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 19 | void starter_draw(N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 20 | Vector2D update_select(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 21 | int update_animation_b(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 22 | int update_animation_c(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 23 | int update_animation_s(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 24 | int update_alt(); |
yfkwok | 2:464c7e62d97d | 25 | void set_pos(Vector2D p); |
yfkwok | 2:464c7e62d97d | 26 | void set_pos_csb(int pos_cy, int pos_sy, int pos_by); |
yfkwok | 2:464c7e62d97d | 27 | void set_alt(int alt); |
yfkwok | 2:464c7e62d97d | 28 | int get_select(Vector2D p); |
yfkwok | 2:464c7e62d97d | 29 | void intro(int select,Gamepad &pad, N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 30 | |
yfkwok | 2:464c7e62d97d | 31 | private: |
yfkwok | 2:464c7e62d97d | 32 | Charmander _c1; |
yfkwok | 2:464c7e62d97d | 33 | Squirtle _s1; |
yfkwok | 2:464c7e62d97d | 34 | Bulbasaur _b1; |
yfkwok | 2:464c7e62d97d | 35 | int _pos_x; |
yfkwok | 2:464c7e62d97d | 36 | int _pos_y; |
yfkwok | 2:464c7e62d97d | 37 | int _pos_cy; |
yfkwok | 2:464c7e62d97d | 38 | int _pos_sy; |
yfkwok | 2:464c7e62d97d | 39 | int _pos_by; |
yfkwok | 2:464c7e62d97d | 40 | int _alt; |
yfkwok | 2:464c7e62d97d | 41 | }; |
yfkwok | 2:464c7e62d97d | 42 | |
yfkwok | 2:464c7e62d97d | 43 | #endif |