Crazy Eddie's GUI System  ${CEGUI_VERSION}
MinesweeperSample Class Reference
+ Inheritance diagram for MinesweeperSample:
+ Collaboration diagram for MinesweeperSample:

Public Member Functions

virtual bool initialise (CEGUI::GUIContext *guiContext)
 
virtual void deinitialise ()
 
- Public Member Functions inherited from Sample
virtual void onEnteringSample ()
 
virtual void update (float)
 
const CEGUI::StringgetUsedFilesString ()
 

Protected Member Functions

bool handleGameStartClicked (const CEGUI::EventArgs &event)
 
bool handleMineButtonClicked (const CEGUI::EventArgs &event)
 
bool handleMineButtonDown (const CEGUI::EventArgs &event)
 
bool handleUpdateTimer (const CEGUI::EventArgs &event)
 
void boardReset ()
 
void boardPositionMines ()
 
bool isGameWin ()
 
void gameEnd (bool victory)
 
bool boardDiscover (const Location &location)
 

Protected Attributes

CEGUI::PushButtond_buttons [MinesweeperSize][MinesweeperSize]
 
Location d_buttonsMapping [MinesweeperSize][MinesweeperSize]
 
size_t d_board [MinesweeperSize][MinesweeperSize]
 
size_t d_boardCellDiscovered
 
CEGUI::Editboxd_counter
 
CEGUI::Editboxd_timer
 
CEGUI::Windowd_result
 
bool d_gameStarted
 
clock_t d_timerStartTime
 
clock_t d_timerValue
 
Timerd_alarm
 
- Protected Attributes inherited from Sample
CEGUI::String d_usedFiles