![](/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
Characters/Charmander.h@6:9104692d6c8c, 2019-04-10 (annotated)
- Committer:
- yfkwok
- Date:
- Wed Apr 10 17:52:45 2019 +0000
- Revision:
- 6:9104692d6c8c
- Parent:
- 2:464c7e62d97d
10/04/2019 - Add animation for Charmander
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yfkwok | 2:464c7e62d97d | 1 | #ifndef CHARMANDER_H |
yfkwok | 2:464c7e62d97d | 2 | #define CHARMANDER_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 Charmander |
yfkwok | 2:464c7e62d97d | 9 | { |
yfkwok | 2:464c7e62d97d | 10 | |
yfkwok | 2:464c7e62d97d | 11 | public: |
yfkwok | 2:464c7e62d97d | 12 | Charmander(); |
yfkwok | 2:464c7e62d97d | 13 | ~Charmander(); |
yfkwok | 2:464c7e62d97d | 14 | |
yfkwok | 2:464c7e62d97d | 15 | void draw_cha1_sprite(int pos_x,int pos_y,N5110 &lcd); |
yfkwok | 6:9104692d6c8c | 16 | void evo_1_sprite(N5110 &lcd); |
yfkwok | 6:9104692d6c8c | 17 | void evo_2_sprite(N5110 &lcd); |
yfkwok | 6:9104692d6c8c | 18 | void evo_3_sprite(N5110 &lcd, int x, int y); |
yfkwok | 6:9104692d6c8c | 19 | void evo_1_cong(N5110 &lcd); |
yfkwok | 6:9104692d6c8c | 20 | void evo_2_cong(N5110 &lcd); |
yfkwok | 6:9104692d6c8c | 21 | void evo_3_cong(N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 22 | void description(Gamepad &pad, N5110 &lcd); |
yfkwok | 2:464c7e62d97d | 23 | |
yfkwok | 2:464c7e62d97d | 24 | private: |
yfkwok | 2:464c7e62d97d | 25 | |
yfkwok | 2:464c7e62d97d | 26 | int _pos_x; |
yfkwok | 2:464c7e62d97d | 27 | int _pos_y; |
yfkwok | 2:464c7e62d97d | 28 | |
yfkwok | 2:464c7e62d97d | 29 | }; |
yfkwok | 2:464c7e62d97d | 30 | |
yfkwok | 2:464c7e62d97d | 31 | #endif |