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

GameRobotRic.h

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

File content as of revision 18:70190f956a24:

/*
 * SOURCE FILE : GameRobotRic.h
 *
 * The RobotRic game class.
 *
 */

#ifndef GameRobotRicIncluded
  
  #define GameRobotRicIncluded

  #include "Gameduino.h"          // Gameduino stuff
  #include "Game.h"               // base class for all games
  #include "PanelControls.h"      // for joysticks and buttons
  #include "PlayerObject.h"
  #include "HighScoreTable.h"     // for high score table stored in external EEPROM

  class GameRobotRic : public Game {
    
  public :

    /*****************/
    /* PLAY THE GAME */
    /*****************/
    // This NEVER exits.
    void Play( void );

  private :
  
    // The one and only player.
    PlayerObject player;
    
    // Controls used by player.
    PanelControls controls;
    
    /**************************/
    /* CHECK FOR A HIGH SCORE */
    /**************************/
    // Pass pointer to a Gameduino to display on in gd.
    // Pass pointer to high score table in highScores.
    // Pass score that was achieved in score.
    void CheckForHighScore( Gameduino *gd, HighScoreTable *highScores, UInt32 score );

  };
    
#endif

/* END of GameRobotRic.h */