![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
hgftf
Dependencies: mbed wave_player 4DGL-uLCD-SE MMA8452
speech.cpp@10:0b2f37cef9b9, 2021-04-17 (annotated)
- Committer:
- ajorgih3
- Date:
- Sat Apr 17 14:09:46 2021 +0000
- Revision:
- 10:0b2f37cef9b9
- Parent:
- 1:10330bce85cb
huhu
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
DCchico | 1:10330bce85cb | 1 | #include "speech.h" |
DCchico | 1:10330bce85cb | 2 | |
DCchico | 1:10330bce85cb | 3 | #include "globals.h" |
DCchico | 1:10330bce85cb | 4 | #include "hardware.h" |
DCchico | 1:10330bce85cb | 5 | |
DCchico | 1:10330bce85cb | 6 | /** |
DCchico | 1:10330bce85cb | 7 | * Draw the speech bubble background. |
DCchico | 1:10330bce85cb | 8 | */ |
DCchico | 1:10330bce85cb | 9 | static void draw_speech_bubble(); |
DCchico | 1:10330bce85cb | 10 | |
DCchico | 1:10330bce85cb | 11 | /** |
DCchico | 1:10330bce85cb | 12 | * Erase the speech bubble. |
DCchico | 1:10330bce85cb | 13 | */ |
DCchico | 1:10330bce85cb | 14 | static void erase_speech_bubble(); |
DCchico | 1:10330bce85cb | 15 | |
DCchico | 1:10330bce85cb | 16 | /** |
DCchico | 1:10330bce85cb | 17 | * Draw a single line of the speech bubble. |
DCchico | 1:10330bce85cb | 18 | * @param line The text to display |
DCchico | 1:10330bce85cb | 19 | * @param which If TOP, the first line; if BOTTOM, the second line. |
DCchico | 1:10330bce85cb | 20 | */ |
DCchico | 1:10330bce85cb | 21 | #define TOP 0 |
DCchico | 1:10330bce85cb | 22 | #define BOTTOM 1 |
DCchico | 1:10330bce85cb | 23 | static void draw_speech_line(const char* line, int which); |
DCchico | 1:10330bce85cb | 24 | |
DCchico | 1:10330bce85cb | 25 | void draw_speech_bubble() |
DCchico | 1:10330bce85cb | 26 | { |
DCchico | 1:10330bce85cb | 27 | |
DCchico | 1:10330bce85cb | 28 | } |
DCchico | 1:10330bce85cb | 29 | |
DCchico | 1:10330bce85cb | 30 | void erase_speech_bubble() |
DCchico | 1:10330bce85cb | 31 | { |
DCchico | 1:10330bce85cb | 32 | |
DCchico | 1:10330bce85cb | 33 | } |
DCchico | 1:10330bce85cb | 34 | |
DCchico | 1:10330bce85cb | 35 | void draw_speech_line(const char* line, int which) |
DCchico | 1:10330bce85cb | 36 | { |
DCchico | 1:10330bce85cb | 37 | |
DCchico | 1:10330bce85cb | 38 | } |
DCchico | 1:10330bce85cb | 39 | |
DCchico | 1:10330bce85cb | 40 | void speech_bubble_wait() |
DCchico | 1:10330bce85cb | 41 | { |
DCchico | 1:10330bce85cb | 42 | |
DCchico | 1:10330bce85cb | 43 | } |
DCchico | 1:10330bce85cb | 44 | |
DCchico | 1:10330bce85cb | 45 | void speech(const char* line1, const char* line2) |
DCchico | 1:10330bce85cb | 46 | { |
DCchico | 1:10330bce85cb | 47 | |
DCchico | 1:10330bce85cb | 48 | } |
DCchico | 1:10330bce85cb | 49 | |
DCchico | 1:10330bce85cb | 50 | void long_speech(const char* lines[], int n) |
DCchico | 1:10330bce85cb | 51 | { |
DCchico | 1:10330bce85cb | 52 | |
DCchico | 1:10330bce85cb | 53 | } |