Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed FXOS8700CQ mbed-rtos
Score/Score.h@12:71683453f66a, 2019-04-15 (annotated)
- Committer:
- yfkwok
- Date:
- Mon Apr 15 01:38:53 2019 +0000
- Revision:
- 12:71683453f66a
- Parent:
- 10:adff3c804985
- Child:
- 16:4e49f5cb972e
15/4/2019 - Update animation for Bulbasaur
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
yfkwok | 2:464c7e62d97d | 1 | #ifndef SCORE_H |
yfkwok | 2:464c7e62d97d | 2 | #define SCORE_H |
yfkwok | 2:464c7e62d97d | 3 | |
yfkwok | 2:464c7e62d97d | 4 | #include "Gamepad.h" |
yfkwok | 2:464c7e62d97d | 5 | #include "mbed.h" |
yfkwok | 2:464c7e62d97d | 6 | #include "Notes.h" |
yfkwok | 4:5bc9c4363d31 | 7 | #include "N5110.h" |
yfkwok | 4:5bc9c4363d31 | 8 | #include "Squirtle.h" |
yfkwok | 10:adff3c804985 | 9 | #include "Charmander.h" |
yfkwok | 12:71683453f66a | 10 | #include "Bulbasaur.h" |
yfkwok | 2:464c7e62d97d | 11 | |
yfkwok | 2:464c7e62d97d | 12 | class Score |
yfkwok | 2:464c7e62d97d | 13 | { |
yfkwok | 2:464c7e62d97d | 14 | public: |
yfkwok | 2:464c7e62d97d | 15 | Score(); |
yfkwok | 2:464c7e62d97d | 16 | ~Score(); |
yfkwok | 2:464c7e62d97d | 17 | void title_music(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 18 | void level_up(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 19 | void congrats(Gamepad &pad); |
yfkwok | 2:464c7e62d97d | 20 | void coin(Gamepad &pad); |
yfkwok | 4:5bc9c4363d31 | 21 | void evolution_music(Gamepad &pad, N5110 &lcd, int cha, int year); |
yfkwok | 4:5bc9c4363d31 | 22 | void congrats(Gamepad &pad, N5110 &lcd, int cha, int year); |
yfkwok | 12:71683453f66a | 23 | void draw(N5110 &lcd, int cha, int year, int x, int y); |
yfkwok | 4:5bc9c4363d31 | 24 | void draw_cong(N5110 &lcd, int cha, int year); |
yfkwok | 5:bc0691d02fd5 | 25 | void win(Gamepad &pad); |
yfkwok | 5:bc0691d02fd5 | 26 | void exam_intro(Gamepad &pad); |
yfkwok | 5:bc0691d02fd5 | 27 | void gym(Gamepad &pad, bool state); |
yfkwok | 2:464c7e62d97d | 28 | |
yfkwok | 2:464c7e62d97d | 29 | private: |
yfkwok | 4:5bc9c4363d31 | 30 | Squirtle _s1; |
yfkwok | 10:adff3c804985 | 31 | Charmander _c1; |
yfkwok | 12:71683453f66a | 32 | Bulbasaur _b1; |
yfkwok | 2:464c7e62d97d | 33 | }; |
yfkwok | 2:464c7e62d97d | 34 | #endif |