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
Engine/Engine.h@6:a54df561f442, 2019-03-14 (annotated)
- Committer:
- el17ajf
- Date:
- Thu Mar 14 12:08:10 2019 +0000
- Revision:
- 6:a54df561f442
- Parent:
- 5:3efbdcb3efaf
- Child:
- 8:5066ce13a430
Changed tetromino constructors
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| el17ajf | 1:928632432ea4 | 1 | #ifndef ENGINE_H |
| el17ajf | 1:928632432ea4 | 2 | #define ENGINE_H |
| el17ajf | 1:928632432ea4 | 3 | |
| el17ajf | 2:0b5e289ef905 | 4 | #include "Graphics.h" |
| el17ajf | 6:a54df561f442 | 5 | #include "Menus.h" |
| el17ajf | 5:3efbdcb3efaf | 6 | #include "Game.h" |
| el17ajf | 5:3efbdcb3efaf | 7 | #include "Input.h" |
| el17ajf | 2:0b5e289ef905 | 8 | |
| el17ajf | 1:928632432ea4 | 9 | class Engine { |
| el17ajf | 1:928632432ea4 | 10 | private: |
| el17ajf | 2:0b5e289ef905 | 11 | const float FPS = 30; |
| el17ajf | 6:a54df561f442 | 12 | Game game; |
| el17ajf | 1:928632432ea4 | 13 | public: |
| el17ajf | 1:928632432ea4 | 14 | /* Constructor */ |
| el17ajf | 1:928632432ea4 | 15 | Engine(); |
| el17ajf | 1:928632432ea4 | 16 | |
| el17ajf | 1:928632432ea4 | 17 | /* Destructor */ |
| el17ajf | 1:928632432ea4 | 18 | ~Engine(); |
| el17ajf | 1:928632432ea4 | 19 | |
| el17ajf | 6:a54df561f442 | 20 | /* Game loop */ |
| el17ajf | 1:928632432ea4 | 21 | void loop(); |
| el17ajf | 1:928632432ea4 | 22 | }; |
| el17ajf | 1:928632432ea4 | 23 | |
| el17ajf | 1:928632432ea4 | 24 | #endif |
