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

Public Member Functions | |
| StoneField (int width=15, int height=10, int colors=3, unsigned int board=0, bool undoenabled=true) | |
| ~StoneField () | |
| int | width () const |
| int | height () const |
| void | newGame (unsigned int board, int colors) |
| void | reset () |
| int | mark (int x, int y, bool force=false) |
| void | unmark () |
| int | remove (int x, int y, bool force=false) |
| int | undo (int count=1) |
| bool | isGameover () const |
| bool | gotBonus () const |
| void | clearBonus () |
| bool | undoPossible () const |
| int | getBoard () const |
| int | getScore () const |
| int | getColors () const |
| int | getMarked () const |
Protected Member Functions | |
| int | getFieldSize () const |
| Stone * | getField () const |
| int | map (int x, int y) |
| void | mark (int index, unsigned char color) |
Private Attributes | |
| int | sizex |
| int | sizey |
| int | maxstone |
| Stone * | field |
| int | colors |
| unsigned int | board |
| unsigned int | score |
| int | gameover |
| bool | m_gotBonus |
| int | marked |
| KRandomSequence | random |
| QList< StoneFieldState > * | undolist |
Friends | |
| class | StoneFieldState |
| class | StoneWidget |
|
||||||||||||||||||||||||
|
Definition at line 55 of file StoneField.cpp. References field, m_gotBonus, maxstone, newGame(), sizex, sizey, and undolist. |
|
|
Definition at line 73 of file StoneField.cpp. |
|
|
Definition at line 355 of file StoneField.cpp. References m_gotBonus. Referenced by StoneWidget::clearBonus(). |
|
|
Definition at line 360 of file StoneField.cpp. References board. Referenced by StoneWidget::board(), and StoneWidget::newGame(). |
|
|
Definition at line 370 of file StoneField.cpp. References colors. Referenced by StoneWidget::colors(), and StoneWidget::newGame(). |
|
|
Definition at line 385 of file StoneField.cpp. References field. Referenced by StoneWidget::paintEvent(). |
|
|
Definition at line 380 of file StoneField.cpp. References maxstone. |
|
|
Definition at line 375 of file StoneField.cpp. References marked. Referenced by StoneWidget::marked(), StoneWidget::mousePressEvent(), and StoneWidget::undo(). |
|
|
Definition at line 365 of file StoneField.cpp. References score. Referenced by StoneWidget::mousePressEvent(), StoneWidget::score(), and StoneWidget::undo(). |
|
|
Definition at line 351 of file StoneField.cpp. References m_gotBonus. Referenced by StoneWidget::hasBonus(). |
|
|
Definition at line 85 of file StoneField.cpp. References sizey. |
|
|
Definition at line 322 of file StoneField.cpp. References field, gameover, i, maxstone, and sizex. Referenced by StoneWidget::isGameover(), StoneWidget::mousePressEvent(), StoneWidget::myMoveEvent(), StoneWidget::undo(), and StoneWidget::undoPossible(). |
|
||||||||||||
|
Definition at line 136 of file StoneField.cpp. |
|
||||||||||||
|
Definition at line 163 of file StoneField.cpp. References Stone::changed, Stone::color, field, mark(), marked, Stone::marked, maxstone, sizex, and sizey. |
|
||||||||||||||||
|
Definition at line 142 of file StoneField.cpp. References field, map(), Stone::marked, marked, and unmark(). Referenced by mark(), StoneWidget::mousePressEvent(), StoneWidget::myMoveEvent(), remove(), and StoneWidget::undo(). |
|
||||||||||||
|
Definition at line 90 of file StoneField.cpp. References reset(). Referenced by StoneWidget::newGame(), and StoneField(). |
|
||||||||||||||||
|
Definition at line 199 of file StoneField.cpp. References Stone::changed, col, Stone::color, Opie::MM::dest, empty, field, gameover, i, m_gotBonus, map(), mark(), Stone::marked, marked, maxstone, row, score, sizex, sizey, StoneFieldState, and undolist. Referenced by StoneWidget::mousePressEvent(). |
|
|
Definition at line 101 of file StoneField.cpp. References board, Stone::changed, Stone::color, colors, field, gameover, KRandomSequence::getLong(), i, marked, Stone::marked, maxstone, random, score, KRandomSequence::setSeed(), and undolist. Referenced by newGame(), and StoneWidget::reset(). |
|
|
Definition at line 301 of file StoneField.cpp. References StoneFieldState::restore(), undolist, and undoPossible(). Referenced by StoneWidget::undo(). |
|
|
Definition at line 296 of file StoneField.cpp. References undolist. Referenced by undo(), and StoneWidget::undoPossible(). |
|
|
Definition at line 187 of file StoneField.cpp. References Stone::changed, field, i, Stone::marked, marked, and maxstone. Referenced by mark(), StoneWidget::myMoveEvent(), StoneWidget::timerEvent(), and StoneWidget::unmark(). |
|
|
Definition at line 80 of file StoneField.cpp. References sizex. |
|
|
Definition at line 54 of file StoneField.h. Referenced by remove(). |
|
|
Definition at line 55 of file StoneField.h. |
|
|
Definition at line 65 of file StoneField.h. Referenced by getBoard(), reset(), StoneFieldState::restore(), and StoneFieldState::StoneFieldState(). |
|
|
Definition at line 64 of file StoneField.h. Referenced by getColors(), reset(), StoneFieldState::restore(), and StoneFieldState::StoneFieldState(). |
|
|
Definition at line 62 of file StoneField.h. Referenced by getField(), isGameover(), mark(), remove(), reset(), StoneFieldState::restore(), StoneField(), StoneFieldState::StoneFieldState(), unmark(), and ~StoneField(). |
|
|
Definition at line 67 of file StoneField.h. Referenced by isGameover(), remove(), reset(), StoneFieldState::restore(), and StoneFieldState::StoneFieldState(). |
|
|
Definition at line 68 of file StoneField.h. Referenced by clearBonus(), gotBonus(), remove(), and StoneField(). |
|
|
Definition at line 69 of file StoneField.h. Referenced by getMarked(), mark(), remove(), reset(), StoneFieldState::restore(), and unmark(). |
|
|
Definition at line 60 of file StoneField.h. Referenced by getFieldSize(), isGameover(), mark(), remove(), reset(), StoneFieldState::restore(), StoneField(), StoneFieldState::StoneFieldState(), and unmark(). |
|
|
Definition at line 71 of file StoneField.h. Referenced by reset(). |
|
|
Definition at line 66 of file StoneField.h. Referenced by getScore(), remove(), reset(), StoneFieldState::restore(), and StoneFieldState::StoneFieldState(). |
|
|
Definition at line 58 of file StoneField.h. Referenced by isGameover(), map(), mark(), remove(), StoneField(), and width(). |
|
|
Definition at line 59 of file StoneField.h. Referenced by height(), map(), mark(), remove(), and StoneField(). |
|
|
Definition at line 72 of file StoneField.h. Referenced by remove(), reset(), StoneField(), undo(), undoPossible(), and ~StoneField(). |
1.4.2