Version of Robotron arcade game using LPC1768, a Gameduino shield, a serial EEPROM (for high scores), two microswitch joysticks and two buttons plus a box to put it in. 20 levels of mayhem.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
HighScoreEntry.h
- Committer:
- RichardE
- Date:
- 2013-06-04
- Revision:
- 0:5fa232ee5fdf
- Child:
- 4:673eb9735d44
File content as of revision 0:5fa232ee5fdf:
/* * SOURCE FILE : HighScoreEntry.h * * Definition of class HighScoreEntry. * Routine to allow player to enter their name using joysticks. * */ #ifndef HighScoreEntryDefined #define HighScoreEntryDefined #include "Types.h" // #include "PanelControls.h" // for reading panel controls. #include "PlayerName.h" class HighScoreEntry { public : /***************/ /* CONSTRUCTOR */ /***************/ HighScoreEntry(); /**************/ /* DESTRUCTOR */ /**************/ virtual ~HighScoreEntry(); /*********************/ /* GET A PLAYER NAME */ /*********************/ // Pass pointer to place to store name in name. // Pass pointer to controls to read in controls. // void GetName( PlayerName *name, PanelControls *controls ); private : // Position of cursor (zero for first character). UInt8 cursorPos; /*********************/ /* WAIT FOR CONTROLS */ /*********************/ // Pass pointer to controls to read in controls. // Pass true in waitActivate to wait for a control to be used. // Pass false to wait for release. // void WaitControls( PanelControls *controls, bool waitActivate ); /*******************/ /* DRAW THE SCREEN */ /*******************/ void DrawScreen( void ); /********************************/ /* DRAW THE NAME AND THE CURSOR */ /********************************/ // Pass player name in name. void DrawName( PlayerName *name ); /********************/ /* UPDATE ANIMATION */ /********************/ void Animate( void ); }; #endif /* END of HighScoreEntry.h */