Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: 25LCxxx_SPI CommonTypes Gameduino mbed
GameRobotRic.h
00001 /* 00002 * SOURCE FILE : GameRobotRic.h 00003 * 00004 * The RobotRic game class. 00005 * 00006 */ 00007 00008 #ifndef GameRobotRicIncluded 00009 00010 #define GameRobotRicIncluded 00011 00012 #include "Gameduino.h" // Gameduino stuff 00013 #include "Game.h" // base class for all games 00014 #include "PanelControls.h" // for joysticks and buttons 00015 #include "PlayerObject.h" 00016 #include "HighScoreTable.h" // for high score table stored in external EEPROM 00017 00018 class GameRobotRic : public Game { 00019 00020 public : 00021 00022 /*****************/ 00023 /* PLAY THE GAME */ 00024 /*****************/ 00025 // This NEVER exits. 00026 void Play( void ); 00027 00028 private : 00029 00030 // The one and only player. 00031 PlayerObject player; 00032 00033 // Controls used by player. 00034 PanelControls controls; 00035 00036 /**************************/ 00037 /* CHECK FOR A HIGH SCORE */ 00038 /**************************/ 00039 // Pass pointer to a Gameduino to display on in gd. 00040 // Pass pointer to high score table in highScores. 00041 // Pass score that was achieved in score. 00042 void CheckForHighScore( Gameduino *gd, HighScoreTable *highScores, UInt32 score ); 00043 00044 }; 00045 00046 #endif 00047 00048 /* END of GameRobotRic.h */ 00049
Generated on Tue Jul 12 2022 21:10:36 by
1.7.2