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

Committer:
RichardE
Date:
Mon Jun 17 15:10:43 2013 +0000
Revision:
18:70190f956a24
Parent:
10:bfa1c307c99d
Improved response to button 1 when entering high scores (HighScoreEntry.cpp).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 5:0b0651ac7832 1 /*
RichardE 5:0b0651ac7832 2 * SOURCE FILE : LevelData.h
RichardE 5:0b0651ac7832 3 *
RichardE 5:0b0651ac7832 4 * Definition of class LevelData.
RichardE 5:0b0651ac7832 5 *
RichardE 5:0b0651ac7832 6 */
RichardE 5:0b0651ac7832 7
RichardE 5:0b0651ac7832 8 #ifndef LevelDataDefined
RichardE 5:0b0651ac7832 9
RichardE 5:0b0651ac7832 10 #define LevelDataDefined
RichardE 5:0b0651ac7832 11
RichardE 5:0b0651ac7832 12 #include "GameObject.h"
RichardE 8:82d88f9381f3 13 #include "EnemyObject.h"
RichardE 8:82d88f9381f3 14 #include "HumanObject.h"
RichardE 8:82d88f9381f3 15 #include "MutantObject.h"
RichardE 5:0b0651ac7832 16
RichardE 5:0b0651ac7832 17 class LevelData {
RichardE 5:0b0651ac7832 18
RichardE 5:0b0651ac7832 19 public :
RichardE 5:0b0651ac7832 20
RichardE 5:0b0651ac7832 21 enum {
RichardE 5:0b0651ac7832 22 MaxEnemies = 64, // Maximum number of enemies you can have in a level
RichardE 5:0b0651ac7832 23 MaxHumans = 24, // maximum number of humans you can have in a level
RichardE 5:0b0651ac7832 24 };
RichardE 5:0b0651ac7832 25
RichardE 5:0b0651ac7832 26 // Array containing pointers to all the enemies in a level.
RichardE 5:0b0651ac7832 27 // A null pointer indicates an unused or dead enemy.
RichardE 5:0b0651ac7832 28 GameObject *Enemies[ MaxEnemies ];
RichardE 5:0b0651ac7832 29
RichardE 5:0b0651ac7832 30 // Array containing pointers to all the humans in a level.
RichardE 5:0b0651ac7832 31 // A null pointer indicates an unused or rescued human.
RichardE 5:0b0651ac7832 32 GameObject *Humans[ MaxHumans ];
RichardE 5:0b0651ac7832 33
RichardE 5:0b0651ac7832 34 /***************/
RichardE 5:0b0651ac7832 35 /* CONSTRUCTOR */
RichardE 5:0b0651ac7832 36 /***************/
RichardE 5:0b0651ac7832 37 LevelData();
RichardE 5:0b0651ac7832 38
RichardE 5:0b0651ac7832 39 /**************/
RichardE 5:0b0651ac7832 40 /* DESTRUCTOR */
RichardE 5:0b0651ac7832 41 /**************/
RichardE 5:0b0651ac7832 42 virtual ~LevelData();
RichardE 5:0b0651ac7832 43
RichardE 5:0b0651ac7832 44 };
RichardE 5:0b0651ac7832 45
RichardE 5:0b0651ac7832 46 #endif
RichardE 5:0b0651ac7832 47
RichardE 5:0b0651ac7832 48 /* END of LevelData.h */
RichardE 5:0b0651ac7832 49