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

Rectangle.cpp

Committer:
RichardE
Date:
2013-06-17
Revision:
18:70190f956a24
Parent:
4:673eb9735d44

File content as of revision 18:70190f956a24:

/*
 * SOURCE FILE : Rectangle.cpp
 *
 * Definition of class Rectangle.
 * Represents a rectangular area.
 *
 */

#include "Rectangle.h"

/***************/
/* CONSTRUCTOR */
/***************/
Rectangle::Rectangle() :
  X1( 0 ),
  Y1( 0 ),
  X2( 9 ),
  Y2( 9 )
{
}

/***************/
/* CONSTRUCTOR */
/***************/
// Pass coordinates of top left in x1 and y1.
// Pass coordinates of bottom right in x2 and y2.
Rectangle::Rectangle( Int16 x1, Int16 y1, Int16 x2, Int16 y2 ) :
  X1( x1 ),
  Y1( y1 ),
  X2( x2 ),
  Y2( y2 )
{
}

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