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

Revision:
15:d8ea0c7b7e64
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/FieldCell.h	Sat Jun 15 15:05:19 2013 +0000
@@ -0,0 +1,59 @@
+/*
+ * SOURCE FILE : FieldCell.h
+ *
+ * Definition of class FieldCell.
+ *
+ */
+
+#ifndef FieldCellDefined
+
+  #define FieldCellDefined
+
+  #include <stdlib.h>           // for NULL
+  #include "Rectangle.h"
+  
+  class FieldCell {
+
+  public :
+
+    // Rectangle which cell covers.
+    // Specified in pixel coordinates.
+    Rectangle Rect;
+    
+    /***************/
+    /* CONSTRUCTOR */
+    /***************/
+    FieldCell();
+
+    /**************/
+    /* DESTRUCTOR */
+    /**************/
+    virtual ~FieldCell();
+
+    /************************/
+    /* GET NEXT CELL IN ROW */
+    /************************/
+    FieldCell *GetNext( void ) const {
+        return nextCell;
+    }
+    
+    /************************/
+    /* SET NEXT CELL IN ROW */
+    /************************/
+    // Pass pointer to next cell in cell.
+    void SetNext( FieldCell *cell ) {
+        nextCell = cell;
+    }
+    
+  private :
+
+    // Pointer to next cell in row. NULL if last cell in row.
+    FieldCell *nextCell;
+      
+  };
+
+#endif
+
+/* END of FieldCell.h */
+
+