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
Game.h@4:a61cdd4e7afa, 2015-12-05 (annotated)
- Committer:
- NamSom
- Date:
- Sat Dec 05 19:01:26 2015 +0000
- Revision:
- 4:a61cdd4e7afa
- Parent:
- 1:ba7154d2d7ca
Game3 underdevelopment
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| NamSom | 1:ba7154d2d7ca | 1 | #ifndef GAME_H_INCLUDED |
| NamSom | 1:ba7154d2d7ca | 2 | #define GAME_H_INCLUDED |
| NamSom | 4:a61cdd4e7afa | 3 | #include"DigitDisplay.h" |
| NamSom | 1:ba7154d2d7ca | 4 | |
| NamSom | 1:ba7154d2d7ca | 5 | class Game |
| NamSom | 1:ba7154d2d7ca | 6 | { |
| NamSom | 1:ba7154d2d7ca | 7 | private: |
| NamSom | 4:a61cdd4e7afa | 8 | int level; |
| NamSom | 1:ba7154d2d7ca | 9 | public: |
| NamSom | 1:ba7154d2d7ca | 10 | Game(); |
| NamSom | 4:a61cdd4e7afa | 11 | char dectohex(int dec); |
| NamSom | 4:a61cdd4e7afa | 12 | int randomHex(float x); |
| NamSom | 4:a61cdd4e7afa | 13 | int checkButton(int x); |
| NamSom | 4:a61cdd4e7afa | 14 | int getlevel(); |
| NamSom | 4:a61cdd4e7afa | 15 | void resetlevel(); |
| NamSom | 4:a61cdd4e7afa | 16 | void pluslevel(); |
| NamSom | 1:ba7154d2d7ca | 17 | |
| NamSom | 1:ba7154d2d7ca | 18 | }; |
| NamSom | 1:ba7154d2d7ca | 19 | |
| NamSom | 1:ba7154d2d7ca | 20 | |
| NamSom | 4:a61cdd4e7afa | 21 | |
| NamSom | 1:ba7154d2d7ca | 22 | #endif // GAME_H_INCLUDED |