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 Gamepad N5110 mbed-rtos
Instruction/Instruction.h@0:d9cf94b41df3, 2019-05-09 (annotated)
- Committer:
- RexRoshan
- Date:
- Thu May 09 09:49:35 2019 +0000
- Revision:
- 0:d9cf94b41df3
Documentation has been completed and the code has been slightly modified
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
RexRoshan | 0:d9cf94b41df3 | 1 | #ifndef INSTRUCTION_H |
RexRoshan | 0:d9cf94b41df3 | 2 | #define INSTRUCTION_H |
RexRoshan | 0:d9cf94b41df3 | 3 | |
RexRoshan | 0:d9cf94b41df3 | 4 | #include "Gamepad.h" |
RexRoshan | 0:d9cf94b41df3 | 5 | #include "N5110.h" |
RexRoshan | 0:d9cf94b41df3 | 6 | #include "mbed.h" |
RexRoshan | 0:d9cf94b41df3 | 7 | |
RexRoshan | 0:d9cf94b41df3 | 8 | /** Instruction Class |
RexRoshan | 0:d9cf94b41df3 | 9 | * @brief Instruction and Game Rules page |
RexRoshan | 0:d9cf94b41df3 | 10 | * @author Rex Roshan Raj |
RexRoshan | 0:d9cf94b41df3 | 11 | */ |
RexRoshan | 0:d9cf94b41df3 | 12 | class Instruction |
RexRoshan | 0:d9cf94b41df3 | 13 | { |
RexRoshan | 0:d9cf94b41df3 | 14 | |
RexRoshan | 0:d9cf94b41df3 | 15 | public: |
RexRoshan | 0:d9cf94b41df3 | 16 | |
RexRoshan | 0:d9cf94b41df3 | 17 | /** Constructor */ |
RexRoshan | 0:d9cf94b41df3 | 18 | Instruction(); |
RexRoshan | 0:d9cf94b41df3 | 19 | |
RexRoshan | 0:d9cf94b41df3 | 20 | /** Destructor */ |
RexRoshan | 0:d9cf94b41df3 | 21 | ~Instruction(); |
RexRoshan | 0:d9cf94b41df3 | 22 | |
RexRoshan | 0:d9cf94b41df3 | 23 | /** Draws instruction |
RexRoshan | 0:d9cf94b41df3 | 24 | * @param N5110 lcd |
RexRoshan | 0:d9cf94b41df3 | 25 | * @param Gamepad pad |
RexRoshan | 0:d9cf94b41df3 | 26 | * @brief Draws all the instruction and the rules of the game |
RexRoshan | 0:d9cf94b41df3 | 27 | */ |
RexRoshan | 0:d9cf94b41df3 | 28 | void rules(N5110 &lcd,Gamepad &pad); |
RexRoshan | 0:d9cf94b41df3 | 29 | |
RexRoshan | 0:d9cf94b41df3 | 30 | /** Draws guidelines |
RexRoshan | 0:d9cf94b41df3 | 31 | * @param N5110 lcd |
RexRoshan | 0:d9cf94b41df3 | 32 | * @param Gamepad pad |
RexRoshan | 0:d9cf94b41df3 | 33 | * @brief Draws all the guidelines for the minigame |
RexRoshan | 0:d9cf94b41df3 | 34 | */ |
RexRoshan | 0:d9cf94b41df3 | 35 | void mini_rules(N5110 &lcd,Gamepad &pad); |
RexRoshan | 0:d9cf94b41df3 | 36 | |
RexRoshan | 0:d9cf94b41df3 | 37 | |
RexRoshan | 0:d9cf94b41df3 | 38 | private: |
RexRoshan | 0:d9cf94b41df3 | 39 | |
RexRoshan | 0:d9cf94b41df3 | 40 | }; |
RexRoshan | 0:d9cf94b41df3 | 41 | |
RexRoshan | 0:d9cf94b41df3 | 42 | #endif |