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

FieldCell.h

Committer:
RichardE
Date:
2013-06-17
Revision:
18:70190f956a24
Parent:
15:d8ea0c7b7e64

File content as of revision 18:70190f956a24:

/*
 * 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 */