Hugo Hu / Mbed 2 deprecated BRAVEHEART

Dependencies:   mbed N5110 ShiftReg PinDetect

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CoverPage.h Source File

CoverPage.h

Go to the documentation of this file.
00001 #ifndef TITLE_SCREEN_H
00002 #define TITLE_SCREEN_H
00003 
00004 #include "State.h "
00005 
00006 /// @file CoverPage.h
00007 
00008 /// Used to display the splash screen which is shown when turning the device on.
00009 class CoverPage : public State
00010 {
00011     public:
00012         CoverPage(StateManager* fsm, N5110 *lcd, InputManager* input, Sound* sound, ShiftReg* shiftreg)
00013                 : State(fsm, lcd, input, sound, shiftreg) {init();}
00014         
00015         virtual void update(float dt);
00016         virtual void render();
00017         
00018     private:
00019         void init();
00020         static void btnPress();
00021         static const bool splashScreen[48][84];
00022         static bool btnWasPressed;
00023         
00024 };
00025 
00026 #endif