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:
16:d0b142ba4362
Parent:
15:d8ea0c7b7e64
--- a/FieldRow.h	Sat Jun 15 15:05:19 2013 +0000
+++ b/FieldRow.h	Sat Jun 15 19:27:36 2013 +0000
@@ -72,7 +72,21 @@
         }
         return result;
     }
-    
+
+    /********************************/
+    /* GET NUMBER OF COLUMNS IN ROW */
+    /********************************/
+    // Returns number of columns in row.
+    UInt8 GetColumnCount( void ) {
+        UInt8 count = 0;
+        FieldCell *cell = GetFirstCell();
+        while( cell != (FieldCell*)NULL ) {
+            count++;
+            cell = GetNextCell();
+        }
+        return count;
+    }
+        
   private :
   
     // The root cell of the row.