AirsoftTimer software based on mbed
Dependencies: mbed TextLCD keypad
objectives/Objective.h
- Committer:
- sillevl
- Date:
- 2015-05-23
- Revision:
- 16:e8e96bf22df1
- Parent:
- 15:78116b7254d5
- Child:
- 18:abcebc4d0da0
File content as of revision 16:e8e96bf22df1:
#ifndef OBJECTIVE_H #define OBJECTIVE_H #include "../games/Game.h" class Objective : public ButtonListener{ enum Status { WAITING, ACTIVE, COMPLETED }; public: Objective(Game* game); Status getStatus(); void start(); virtual void run() = 0; void complete(); protected: Game* game; LCD* lcd; Leds* leds; Key* key; Button* button; Keyboard* keyboard; Buzzer* buzzer; private: Status status; }; #endif