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.
Fork of IEEE_14_Freescale by
game.h@32:ff71f61bb9f6, 2014-03-22 (annotated)
- Committer:
- sswatek
- Date:
- Sat Mar 22 20:17:29 2014 +0000
- Revision:
- 32:ff71f61bb9f6
- Child:
- 34:4ad11cda1eca
Starting game code and fixed motor directionality
Who changed what in which revision?
| User | Revision | Line number | New contents of line | 
|---|---|---|---|
| sswatek | 32:ff71f61bb9f6 | 1 | #ifndef __GAME_H__ | 
| sswatek | 32:ff71f61bb9f6 | 2 | #define __GAME_H__ | 
| sswatek | 32:ff71f61bb9f6 | 3 | |
| sswatek | 32:ff71f61bb9f6 | 4 | #include "mbed.h" | 
| sswatek | 32:ff71f61bb9f6 | 5 | #include "dbgprint.h" | 
| sswatek | 32:ff71f61bb9f6 | 6 | #include "robot.h" | 
| sswatek | 32:ff71f61bb9f6 | 7 | |
| sswatek | 32:ff71f61bb9f6 | 8 | class gamePlayer{ | 
| sswatek | 32:ff71f61bb9f6 | 9 | private: | 
| sswatek | 32:ff71f61bb9f6 | 10 | robot ⊥ | 
| sswatek | 32:ff71f61bb9f6 | 11 | int row, column; | 
| sswatek | 32:ff71f61bb9f6 | 12 | int rigOnFire; | 
| sswatek | 32:ff71f61bb9f6 | 13 | int waveGaps[3]; | 
| sswatek | 32:ff71f61bb9f6 | 14 | float direction; | 
| sswatek | 32:ff71f61bb9f6 | 15 | public: | 
| sswatek | 32:ff71f61bb9f6 | 16 | gamePlayer(robot &botIn); | 
| sswatek | 32:ff71f61bb9f6 | 17 | void checkWaves(); | 
| sswatek | 32:ff71f61bb9f6 | 18 | }; | 
| sswatek | 32:ff71f61bb9f6 | 19 | |
| sswatek | 32:ff71f61bb9f6 | 20 | #endif | 
