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:
4:673eb9735d44
Improved response to button 1 when entering high scores (HighScoreEntry.cpp).

Who changed what in which revision?

UserRevisionLine numberNew contents of line
RichardE 4:673eb9735d44 1 /*
RichardE 4:673eb9735d44 2 * SOURCE FILE : Rectangle.cpp
RichardE 4:673eb9735d44 3 *
RichardE 4:673eb9735d44 4 * Definition of class Rectangle.
RichardE 4:673eb9735d44 5 * Represents a rectangular area.
RichardE 4:673eb9735d44 6 *
RichardE 4:673eb9735d44 7 */
RichardE 4:673eb9735d44 8
RichardE 4:673eb9735d44 9 #include "Rectangle.h"
RichardE 4:673eb9735d44 10
RichardE 4:673eb9735d44 11 /***************/
RichardE 4:673eb9735d44 12 /* CONSTRUCTOR */
RichardE 4:673eb9735d44 13 /***************/
RichardE 4:673eb9735d44 14 Rectangle::Rectangle() :
RichardE 4:673eb9735d44 15 X1( 0 ),
RichardE 4:673eb9735d44 16 Y1( 0 ),
RichardE 4:673eb9735d44 17 X2( 9 ),
RichardE 4:673eb9735d44 18 Y2( 9 )
RichardE 4:673eb9735d44 19 {
RichardE 4:673eb9735d44 20 }
RichardE 4:673eb9735d44 21
RichardE 4:673eb9735d44 22 /***************/
RichardE 4:673eb9735d44 23 /* CONSTRUCTOR */
RichardE 4:673eb9735d44 24 /***************/
RichardE 4:673eb9735d44 25 // Pass coordinates of top left in x1 and y1.
RichardE 4:673eb9735d44 26 // Pass coordinates of bottom right in x2 and y2.
RichardE 4:673eb9735d44 27 Rectangle::Rectangle( Int16 x1, Int16 y1, Int16 x2, Int16 y2 ) :
RichardE 4:673eb9735d44 28 X1( x1 ),
RichardE 4:673eb9735d44 29 Y1( y1 ),
RichardE 4:673eb9735d44 30 X2( x2 ),
RichardE 4:673eb9735d44 31 Y2( y2 )
RichardE 4:673eb9735d44 32 {
RichardE 4:673eb9735d44 33 }
RichardE 4:673eb9735d44 34
RichardE 4:673eb9735d44 35 /**************/
RichardE 4:673eb9735d44 36 /* DESTRUCTOR */
RichardE 4:673eb9735d44 37 /**************/
RichardE 4:673eb9735d44 38 Rectangle::~Rectangle() {
RichardE 4:673eb9735d44 39 }
RichardE 4:673eb9735d44 40