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
LevelCollection.h
- Committer:
- RichardE
- Date:
- 2013-06-04
- Revision:
- 0:5fa232ee5fdf
- Child:
- 10:bfa1c307c99d
File content as of revision 0:5fa232ee5fdf:
/* * SOURCE FILE : LevelCollection.h * * Definition of class LevelCollection. * */ #ifndef LevelCollectionDefined #define LevelCollectionDefined #include "Types.h" #include "Level.h" class LevelCollection { public : enum { AttractLevel = 0, // just ticking over encouraging player to start FirstNormalLevel = 1, // first real level excluding attract mode }; /***************/ /* CONSTRUCTOR */ /***************/ LevelCollection(); /**************/ /* DESTRUCTOR */ /**************/ virtual ~LevelCollection(); /************************/ /* GET NUMBER OF LEVELS */ /************************/ UInt8 GetLevelCount( void ) const; /***************/ /* GET A LEVEL */ /***************/ // Pass level number in levelNumber. // Returns pointer to level or NULL if no such level. Level *GetLevel( UInt8 levelNumber ); }; #endif /* END of LevelCollection.h */