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
Characters/Squirtle.h@4:5bc9c4363d31, 2019-04-03 (annotated)
- Committer:
- yfkwok
- Date:
- Wed Apr 03 18:40:43 2019 +0000
- Revision:
- 4:5bc9c4363d31
- Parent:
- 2:464c7e62d97d
- Child:
- 6:9104692d6c8c
- Child:
- 9:1395c98b58fc
3/4/2019 - Created evolution music and animation for Squirtle
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yfkwok | 2:464c7e62d97d | 1 | #ifndef SQUIRTLE_H |
yfkwok | 2:464c7e62d97d | 2 | #define SQUIRTLE_H |
yfkwok | 2:464c7e62d97d | 3 | |
yfkwok | 2:464c7e62d97d | 4 | #include "mbed.h" |
yfkwok | 2:464c7e62d97d | 5 | #include "N5110.h" |
yfkwok | 2:464c7e62d97d | 6 | #include "Gamepad.h" |
yfkwok | 2:464c7e62d97d | 7 | |
yfkwok | 2:464c7e62d97d | 8 | class Squirtle |
yfkwok | 2:464c7e62d97d | 9 | { |
yfkwok | 2:464c7e62d97d | 10 | |
yfkwok | 2:464c7e62d97d | 11 | public: |
yfkwok | 2:464c7e62d97d | 12 | Squirtle(); |
yfkwok | 2:464c7e62d97d | 13 | ~Squirtle(); |
yfkwok | 2:464c7e62d97d | 14 | |
yfkwok | 2:464c7e62d97d | 15 | void draw_cha1_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 16 | void draw_cha2_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 17 | void draw_cha3_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 18 | void draw_cha1_alt_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 19 | void draw_cha2_alt_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 20 | void draw_cha3_alt_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 21 | void evo_1_sprite(N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 22 | void evo_2_sprite(N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 23 | void evo_3_sprite(N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 24 | void evo_1_cong(N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 25 | void evo_2_cong(N5110 &lcd); |
yfkwok | 4:5bc9c4363d31 | 26 | void evo_3_cong(N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 27 | void description(Gamepad &pad, N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 28 | |
yfkwok | 2:464c7e62d97d | 29 | private: |
yfkwok | 2:464c7e62d97d | 30 | |
yfkwok | 2:464c7e62d97d | 31 | int _pos_x; |
yfkwok | 2:464c7e62d97d | 32 | int _pos_y; |
yfkwok | 2:464c7e62d97d | 33 | |
yfkwok | 2:464c7e62d97d | 34 | }; |
yfkwok | 2:464c7e62d97d | 35 | |
yfkwok | 2:464c7e62d97d | 36 | #endif |