#include </home/clem/local/src/opie/noncore/games/tictac/tictac.h>
Collaboration diagram for TicTacGameBoard:

Public Types | |
| enum | State { Init, HumansTurn, HumanWon, ComputerWon, NobodyWon } |
Signals | |
| void | finished () |
Public Member Functions | |
| TicTacGameBoard (int n, QWidget *parent=0, const char *name=0) | |
| ~TicTacGameBoard () | |
| State | state () const |
| void | computerStarts (bool v) |
| void | newGame () |
Private Slots | |
| void | buttonClicked () |
Private Member Functions | |
| void | setState (State state) |
| void | updateButtons () |
| int | checkBoard (TicTacArray *) |
| void | computerMove () |
Private Attributes | |
| State | st |
| int | nBoard |
| bool | comp_starts |
| TicTacArray * | btArray |
| TicTacButtons * | buttons |
|
|
|
|
||||||||||||||||
|
Definition at line 59 of file tictac.cpp. References TicTacButton::Blank, btArray, buttonClicked(), buttons, comp_starts, QTime::currentTime(), FALSE, QTime::hour(), i, Init, QTime::minute(), nBoard, p, QTime::second(), QPEApplication::showWidget(), st, and t. |
|
|
Definition at line 85 of file tictac.cpp. |
|
|
Definition at line 129 of file tictac.cpp. References TicTacButton::Blank, btArray, buttons, checkBoard(), TicTacButton::Circle, computerMove(), ComputerWon, finished(), HumansTurn, HumanWon, i, s, st, TicTacButton::type(), and updateButtons(). Referenced by TicTacGameBoard(). |
|
|
Definition at line 177 of file tictac.cpp. References at(), TicTacButton::Blank, col, FALSE, i, nBoard, row, t, and TRUE. Referenced by buttonClicked(), and computerMove(). |
|
|
Definition at line 237 of file tictac.cpp. References TicTacButton::Blank, btArray, checkBoard(), TicTacButton::Circle, ComputerWon, TicTacButton::Cross, finished(), i, nBoard, NobodyWon, numButtons, st, and updateButtons(). Referenced by buttonClicked(), and newGame(). |
|
|
Definition at line 98 of file tictac.cpp. References comp_starts. Referenced by TicTacToe::newGameClicked(). |
|
|
Referenced by buttonClicked(), and computerMove(). |
|
|
Definition at line 110 of file tictac.cpp. References TicTacButton::Blank, btArray, comp_starts, computerMove(), HumansTurn, i, nBoard, st, and updateButtons(). Referenced by TicTacToe::newGameClicked(). |
|
|
Definition at line 72 of file tictac.h. References st. |
|
|
Definition at line 64 of file tictac.h. References st. Referenced by TicTacToe::newState(). |
|
|
Definition at line 155 of file tictac.cpp. References TicTacButton::Blank, btArray, buttons, i, and nBoard. Referenced by buttonClicked(), computerMove(), and newGame(). |
|
|
Definition at line 79 of file tictac.h. Referenced by buttonClicked(), computerMove(), newGame(), TicTacGameBoard(), updateButtons(), and ~TicTacGameBoard(). |
|
|
Definition at line 80 of file tictac.h. Referenced by buttonClicked(), TicTacGameBoard(), updateButtons(), and ~TicTacGameBoard(). |
|
|
Definition at line 78 of file tictac.h. Referenced by computerStarts(), newGame(), and TicTacGameBoard(). |
|
|
Definition at line 77 of file tictac.h. Referenced by checkBoard(), computerMove(), newGame(), TicTacGameBoard(), and updateButtons(). |
|
|
Definition at line 76 of file tictac.h. Referenced by buttonClicked(), computerMove(), newGame(), setState(), state(), and TicTacGameBoard(). |
1.4.2