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
Diff: game.cpp
- Revision:
- 49:7d172c133dbf
- Parent:
- 48:519deb1d4dff
- Child:
- 51:4892c9238c33
diff -r 519deb1d4dff -r 7d172c133dbf game.cpp --- a/game.cpp Thu Apr 03 06:17:32 2014 +0000 +++ b/game.cpp Thu Apr 03 13:17:04 2014 +0000 @@ -10,6 +10,16 @@ direction = -1; } +void gamePlayer::resetFirst(){ + row = 0; + column = 0; + rigOnFire=-1; + waveGaps[0]=-1; + waveGaps[1]=-1; + waveGaps[2]=-1; + direction = -1; +} + void gamePlayer::checkWaves(){ direction = bot.gyro.getZDegrees(); float oldWallDist;