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
LevelData.h
- Committer:
- RichardE
- Date:
- 2013-06-17
- Revision:
- 18:70190f956a24
- Parent:
- 10:bfa1c307c99d
File content as of revision 18:70190f956a24:
/* * SOURCE FILE : LevelData.h * * Definition of class LevelData. * */ #ifndef LevelDataDefined #define LevelDataDefined #include "GameObject.h" #include "EnemyObject.h" #include "HumanObject.h" #include "MutantObject.h" class LevelData { public : enum { MaxEnemies = 64, // Maximum number of enemies you can have in a level MaxHumans = 24, // maximum number of humans you can have in a level }; // Array containing pointers to all the enemies in a level. // A null pointer indicates an unused or dead enemy. GameObject *Enemies[ MaxEnemies ]; // Array containing pointers to all the humans in a level. // A null pointer indicates an unused or rescued human. GameObject *Humans[ MaxHumans ]; /***************/ /* CONSTRUCTOR */ /***************/ LevelData(); /**************/ /* DESTRUCTOR */ /**************/ virtual ~LevelData(); }; #endif /* END of LevelData.h */