AirsoftTimer software based on mbed

Dependencies:   mbed TextLCD keypad

Committer:
sillevl
Date:
Sat May 23 22:42:51 2015 +0000
Revision:
19:2eba101d9c2c
Parent:
16:e8e96bf22df1
Child:
24:f0989eca7469
game selector working (solved strange behaviour with buttonEvent and lcd commands)

Who changed what in which revision?

UserRevisionLine numberNew contents of line
sillevl 13:ece97a1108cc 1
sillevl 13:ece97a1108cc 2 #include "WaitForKeyObjective.h"
sillevl 13:ece97a1108cc 3
sillevl 14:e0bfee0a5e66 4 WaitForKeyObjective::WaitForKeyObjective(Game* game) : Objective(game){
sillevl 14:e0bfee0a5e66 5
sillevl 14:e0bfee0a5e66 6 }
sillevl 14:e0bfee0a5e66 7
sillevl 13:ece97a1108cc 8 void WaitForKeyObjective::run(){
sillevl 19:2eba101d9c2c 9 lcd->cls();
sillevl 15:78116b7254d5 10 lcd->printf("press any key to continue");
sillevl 15:78116b7254d5 11 }
sillevl 15:78116b7254d5 12
sillevl 16:e8e96bf22df1 13 void WaitForKeyObjective::buttonEvent(char c){
sillevl 16:e8e96bf22df1 14 // complete objective if a button is pressed
sillevl 15:78116b7254d5 15 complete();
sillevl 13:ece97a1108cc 16 }