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.cpp

Committer:
RichardE
Date:
2013-06-17
Revision:
18:70190f956a24
Parent:
5:0b0651ac7832

File content as of revision 18:70190f956a24:

/*
 * SOURCE FILE : LevelData.cpp
 *
 * Definition of class LevelData.
 *
 */

#include "LevelData.h"

/***************/
/* CONSTRUCTOR */
/***************/
LevelData::LevelData() {
  UInt8 i;
  // Ensure all enemies are NULL initially.
  for( i = 0; i < MaxEnemies; ++i ) {
    Enemies[ i ] = (GameObject*)NULL;
  }
  // Ensure all humans are NULL initially.
  for( i = 0; i < MaxHumans; ++i ) {
    Humans[ i ] = (GameObject*)NULL;
  }
}

/**************/
/* DESTRUCTOR */
/**************/
LevelData::~LevelData() {
}