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
Fork of el17ajf by
Game/Game.h@3:a1b058ff66c2, 2019-03-12 (annotated)
- Committer:
- el17ajf
- Date:
- Tue Mar 12 16:37:43 2019 +0000
- Revision:
- 3:a1b058ff66c2
- Parent:
- 2:0b5e289ef905
- Child:
- 4:aa433f9865a6
added Grid class for the board
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
el17ajf | 2:0b5e289ef905 | 1 | #ifndef GAME_H |
el17ajf | 2:0b5e289ef905 | 2 | #define GAME_H |
el17ajf | 2:0b5e289ef905 | 3 | |
el17ajf | 2:0b5e289ef905 | 4 | class Game { |
el17ajf | 2:0b5e289ef905 | 5 | public: |
el17ajf | 2:0b5e289ef905 | 6 | Game(); |
el17ajf | 2:0b5e289ef905 | 7 | ~Game(); |
el17ajf | 2:0b5e289ef905 | 8 | void over(); |
el17ajf | 2:0b5e289ef905 | 9 | void update(); |
el17ajf | 2:0b5e289ef905 | 10 | void draw(); |
el17ajf | 2:0b5e289ef905 | 11 | void nextLevel(); |
el17ajf | 2:0b5e289ef905 | 12 | private: |
el17ajf | 2:0b5e289ef905 | 13 | void startLevel(int level); |
el17ajf | 3:a1b058ff66c2 | 14 | Grid * g; |
el17ajf | 2:0b5e289ef905 | 15 | } |
el17ajf | 2:0b5e289ef905 | 16 | |
el17ajf | 2:0b5e289ef905 | 17 | #endif |