Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

MineSweep Class Reference

#include </home/clem/local/src/opie/noncore/games/minesweep/minesweep.h>

Collaboration diagram for MineSweep:

Collaboration graph
[legend]
List of all members.

Public Slots

void gameOver (bool won)
void newGame ()

Public Member Functions

 MineSweep (QWidget *parent=0, const char *name=0, WFlags f=0)
 ~MineSweep ()

Static Public Member Functions

static QString appName ()

Protected Slots

void setCounter (int)
void updateTime ()
void beginner ()
void advanced ()
void expert ()

Private Slots

void startPlaying ()

Private Member Functions

void readConfig ()
void writeConfig () const
void newGame (int)

Private Attributes

MineFieldfield
QLCDNumber * guessLCD
QLCDNumber * timeLCD
QPushButton * newGameButton
QDateTime starttime
QTimer * timer

Constructor & Destructor Documentation

MineSweep::MineSweep QWidget *  parent = 0,
const char *  name = 0,
WFlags  f = 0
 

Definition at line 240 of file minesweep.cpp.

References active, advanced(), QPEApplication::AlwaysOff, background, beginner(), expert(), FALSE, field, gameOver(), guessLCD, Opie::Core::OResource::loadPixmap(), newGame(), newGameButton, pix_new, qApp, readConfig(), setCounter(), QPEApplication::setInputMethodHint(), startPlaying(), timeLCD, timer, tr, TRUE, and updateTime().

MineSweep::~MineSweep  ) 
 

Definition at line 315 of file minesweep.cpp.

References writeConfig().


Member Function Documentation

void MineSweep::advanced  )  [protected, slot]
 

Definition at line 357 of file minesweep.cpp.

References newGame().

Referenced by MineSweep().

static QString MineSweep::appName  )  [inline, static]
 

Definition at line 34 of file minesweep.h.

References QString::fromLatin1().

void MineSweep::beginner  )  [protected, slot]
 

Definition at line 352 of file minesweep.cpp.

References newGame().

Referenced by MineSweep().

void MineSweep::expert  )  [protected, slot]
 

Definition at line 362 of file minesweep.cpp.

References newGame().

Referenced by MineSweep().

void MineSweep::gameOver bool  won  )  [slot]
 

Definition at line 320 of file minesweep.cpp.

References dead_xpm, field, happy_xpm, newGameButton, MineField::showMines(), ResultIndicator::showResult(), and timer.

Referenced by MineSweep().

void MineSweep::newGame int   )  [private]
 

Definition at line 337 of file minesweep.cpp.

References field, newGameButton, pix_new, MineField::setup(), timeLCD, and timer.

void MineSweep::newGame  )  [slot]
 

Definition at line 332 of file minesweep.cpp.

References field, and MineField::level().

Referenced by advanced(), beginner(), expert(), MineSweep(), and readConfig().

void MineSweep::readConfig  )  [private]
 

Definition at line 396 of file minesweep.cpp.

References QDateTime::currentDateTime(), field, newGame(), MineField::readConfig(), Config::readNumEntry(), s, Config::setGroup(), startPlaying(), starttime, and updateTime().

Referenced by MineSweep().

void MineSweep::setCounter int   )  [protected, slot]
 

Definition at line 367 of file minesweep.cpp.

References guessLCD.

Referenced by MineSweep().

void MineSweep::startPlaying  )  [private, slot]
 

Definition at line 345 of file minesweep.cpp.

References QDateTime::currentDateTime(), newGameButton, starttime, timer, and worried_xpm.

Referenced by MineSweep(), and readConfig().

void MineSweep::updateTime  )  [protected, slot]
 

Definition at line 375 of file minesweep.cpp.

References QDateTime::currentDateTime(), s, QDateTime::secsTo(), starttime, and timeLCD.

Referenced by MineSweep(), and readConfig().

void MineSweep::writeConfig  )  const [private]
 

Definition at line 387 of file minesweep.cpp.

References QDateTime::currentDateTime(), field, QDateTime::secsTo(), Config::setGroup(), starttime, timer, MineField::writeConfig(), and Config::writeEntry().

Referenced by ~MineSweep().


Member Data Documentation

MineField* MineSweep::field [private]
 

Definition at line 58 of file minesweep.h.

Referenced by gameOver(), MineSweep(), newGame(), readConfig(), and writeConfig().

QLCDNumber* MineSweep::guessLCD [private]
 

Definition at line 59 of file minesweep.h.

Referenced by MineSweep(), and setCounter().

QPushButton* MineSweep::newGameButton [private]
 

Definition at line 61 of file minesweep.h.

Referenced by gameOver(), MineSweep(), newGame(), and startPlaying().

QDateTime MineSweep::starttime [private]
 

Definition at line 63 of file minesweep.h.

Referenced by readConfig(), startPlaying(), updateTime(), and writeConfig().

QLCDNumber* MineSweep::timeLCD [private]
 

Definition at line 60 of file minesweep.h.

Referenced by MineSweep(), newGame(), and updateTime().

QTimer* MineSweep::timer [private]
 

Definition at line 64 of file minesweep.h.

Referenced by gameOver(), MineSweep(), newGame(), startPlaying(), and writeConfig().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:40:27 2005 for OPIE by  doxygen 1.4.2