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
Diff: LevelData.h
- Revision:
- 5:0b0651ac7832
- Child:
- 8:82d88f9381f3
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/LevelData.h Sat Jun 08 14:40:47 2013 +0000 @@ -0,0 +1,55 @@ +/* + * 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 + MaxMutants = MaxHumans, // Maximum number of mutant 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 ]; + + // Array containing mutant humans (NOT pointers to mutants). + // Pointer to the mutants in this array are written into the Enemies array + // whenever a human is mutated by a brain. + // MutantObject Mutants[ MaxMutants ]; + + /***************/ + /* CONSTRUCTOR */ + /***************/ + LevelData(); + + /**************/ + /* DESTRUCTOR */ + /**************/ + virtual ~LevelData(); + + }; + +#endif + +/* END of LevelData.h */ +