#include </home/clem/local/src/opie/noncore/games/kpacman/board.h>
Inheritance diagram for Board:


Signals | |
| void | clicked (QPoint) |
| void | item (int) |
| void | temporaryScore (int) |
Public Member Functions | |
| Board (int size) | |
| ~Board () | |
| void | init (Image image, QString levelName=0) |
| void | setup (const uchar *buf) |
| void | set (int pos, Square sq, int m=0) |
| void | reset (int pos, Square sq, int m=0) |
| int | position (Square sq, int m=0) |
| bool | isOut (int pos) |
| bool | isEmpty (int pos) |
| bool | isBrick (int pos) |
| bool | isPrison (int pos) |
| bool | isGate (int pos) |
| bool | isTunnel (int pos) |
| bool | isPoint (int pos) |
| bool | isEnergizer (int pos) |
| bool | isFruit (int pos) |
| bool | isPacman (int pos) |
| bool | isMonster (int pos) |
| bool | isWay (int pos, int dir, Square sq) |
| bool | isJump (int pos, int dir) |
| int | move (int pos, int dir, int steps=1) |
| int | closeup (int pos, int dir, int target) |
| int | x (int pos) |
| int | y (int pos) |
| int | turn (int dir) |
| int | points () |
| int | energizers () |
| int | monsters () |
| int | tunnels () |
| Board (QWidget *parent=0, const char *name=0) | |
| Board (QPixmap bgshapes, int w, int h, QWidget *parent) | |
| ~Board () | |
| void | readConfig (Config &) |
| void | writeConfig (Config &) |
| int | xTiles () const |
| int | yTiles () const |
| bool | contains (const QPoint &p) const |
| const Tile * | tile (const QPoint &p) const |
| void | setRules (const QString &shapes, const int *effects) |
| void | clear () |
| void | unsetTile (const QPoint &p) |
| void | setTile (const QPoint &p, const Tile &t) |
| void | setTileState (const QPoint &p, TileItem::State s) |
| void | setCurrentRack (Rack *) |
| void | resetRack () |
| void | finalizeTurn () |
| void | showTurn () |
| void | scoreTurn (const QPoint &at, int n, const QPoint &d) |
| bool | checkTurn () |
| int | score (QPoint at, const Tile **tiles, int n, const Tile *blankvalue, const QPoint &d, bool ignoredict, QStringList *words) const |
| int | bonussedValue (const QPoint &at, int base, int &all_mult) const |
| bool | isStart (const QPoint &at) const |
| int | turnScore () const |
| QSize | sizeHint () const |
Protected Member Functions | |
| virtual void | mousePressEvent (QMouseEvent *) |
| void | contentsMousePressEvent (QMouseEvent *) |
| void | contentsMouseMoveEvent (QMouseEvent *) |
| void | contentsMouseReleaseEvent (QMouseEvent *) |
Private Member Functions | |
| bool | inBounds (int pos) |
| int | idx (const QPoint &p) const |
| TileItem *& | item (const QPoint &p) const |
| QPoint | boardPos (const QPoint &) const |
| void | unshowTurn () |
Private Attributes | |
| int | sz |
| QString | map |
| QString | mapName |
| int | prisonEntry |
| int | prisonExit |
| int | pacmanHome |
| int | monsterHome [8] |
| int | fruitHome |
| int | pacmanPosition |
| int | monsterPosition [8] |
| int | fruitPosition |
| int | energizerPosition [8] |
| int | tunnelPosition [8] |
| int | numMonsters |
| int | numPoints |
| int | numEnergizers |
| int | numTunnels |
| TileItem ** | grid |
| QString | rule_shape |
| const int * | rule_effect |
| int | rack_tiles_bonus |
| Rack * | current_rack |
| QPoint | dragstart |
| QPoint | shown_at |
| int | shown_n |
| QPoint | shown_step |
| int | turn_score |
|
|
|
|
|
|
|
||||||||||||
|
Definition at line 587 of file oyatzee.cpp. |
|
||||||||||||||||||||
|
Definition at line 780 of file wordgame.cpp. References current_rack, grid, shown_n, TileItem::smallHeight(), and TileItem::smallWidth(). |
|
|
|
|
|
Definition at line 1154 of file wordgame.cpp. Referenced by contentsMouseMoveEvent(). |
|
||||||||||||||||
|
Definition at line 942 of file wordgame.cpp. References idx(), mult(), Multiplier, MultiplyAll, rule_effect, and rule_shape. Referenced by score(). |
|
|
Definition at line 962 of file wordgame.cpp. References Global::addWords(), QValueList< T >::append(), at(), QValueList< T >::begin(), clicked(), Rack::computerized(), contains(), QValueList< T >::count(), Rack::count(), current_rack, d, Global::dawg(), QValueList< T >::end(), FALSE, Global::fixedDawg(), i, l, QString::length(), score(), shown_at, shown_n, shown_step, showTurn(), Rack::tileRef(), tr, TRUE, turn_score, unshowTurn(), v, and warning(). Referenced by WordGame::endTurn(). |
|
|
Definition at line 829 of file wordgame.cpp. Referenced by readConfig(). |
|
|
Referenced by checkTurn(), mousePressEvent(), and Possibilityboard::Possibilityboard(). |
|
||||||||||||||||
|
Definition at line 363 of file board.cpp. References E, N, S, W, x(), and y(). Referenced by Monster::move(), and Fruit::move(). |
|
|
Definition at line 183 of file wordgame.h. Referenced by checkTurn(), contentsMouseMoveEvent(), finalizeTurn(), ComputerPlayer::findBest(), score(), showTurn(), and unshowTurn(). |
|
|
Definition at line 856 of file wordgame.cpp. References boardPos(), Rack::computerized(), contains(), current_rack, d, diff(), dragstart, end, i, resetRack(), scoreTurn(), showTurn(), start, t, tile(), unshowTurn(), and Bigint::x. |
|
|
Definition at line 851 of file wordgame.cpp. References dragstart. |
|
|
Definition at line 1159 of file wordgame.cpp. References current_rack. |
|
|
Definition at line 409 of file board.cpp. References numEnergizers. Referenced by Referee::timerEvent(). |
|
|
Definition at line 897 of file wordgame.cpp. References at(), contains(), current_rack, TileItem::Firm, TileItem::Floating, i, item(), Rack::remove(), setTileState(), shown_at, shown_n, shown_step, and tile(). Referenced by WordGame::endTurn(). |
|
|
Definition at line 227 of file wordgame.h. Referenced by bonussedValue(), isStart(), item(), setTile(), and unsetTile(). |
|
|
Definition at line 125 of file board.cpp. References FALSE, sz, and TRUE. Referenced by isBrick(), isEmpty(), isEnergizer(), isFruit(), isGate(), isMonster(), isOut(), isPacman(), isPoint(), isPrison(), isTunnel(), reset(), and set(). |
|
||||||||||||
|
Definition at line 25 of file board.cpp. References BoardHeight, BoardWidth, QString::data(), Demo, demo_bits, energizerPosition, QTextStream::eof(), File, QString::fill(), QString::find(), fruitHome, fruitPosition, height, Intro, IO_ReadOnly, QString::isEmpty(), QString::isNull(), QString::length(), Level, map, mapName, monsterHome, monsterPosition, numEnergizers, numMonsters, numPoints, numTunnels, QFile::open(), OUT, pacmanHome, pacmanPosition, printf, prisonEntry, prisonExit, QTextStream::readLine(), QString::replace(), setup(), and tunnelPosition. Referenced by Board(), Referee::demo(), Referee::intro(), Referee::levelUpPlay(), and Referee::play(). |
|
|
Definition at line 230 of file board.cpp. References at(), brick, FALSE, fixBits, inBounds(), and TRUE. Referenced by Painter::drawBrick(), Painter::initRoomPixmap(), and isWay(). |
|
|
Definition at line 223 of file board.cpp. References at(), empty, FALSE, fixBits, inBounds(), and TRUE. Referenced by isWay(). |
|
|
Definition at line 265 of file board.cpp. References at(), energizerBit, FALSE, inBounds(), OUT, and TRUE. Referenced by Referee::timerEvent(). |
|
|
Definition at line 272 of file board.cpp. References at(), FALSE, fruitBit, inBounds(), OUT, and TRUE. |
|
|
Definition at line 244 of file board.cpp. References at(), FALSE, fixBits, gate, inBounds(), and TRUE. Referenced by Painter::drawPrison(), Painter::initRoomPixmap(), and isWay(). |
|
||||||||||||
|
Definition at line 318 of file board.cpp. References BoardWidth, E, FALSE, N, NE, NW, S, SE, SW, sz, W, and x(). Referenced by Fruit::move(). |
|
|
Definition at line 286 of file board.cpp. References at(), FALSE, inBounds(), monsterBits, OUT, and TRUE. Referenced by Referee::introPlay(), and Referee::timerEvent(). |
|
|
Definition at line 216 of file board.cpp. References at(), FALSE, inBounds(), OUT, and TRUE. Referenced by Painter::drawBrick(), and isWay(). |
|
|
Definition at line 279 of file board.cpp. References at(), FALSE, inBounds(), OUT, pacmanBit, and TRUE. |
|
|
Definition at line 258 of file board.cpp. References at(), FALSE, inBounds(), OUT, pointBit, and TRUE. Referenced by Painter::initRoomPixmap(), and Referee::timerEvent(). |
|
|
Definition at line 237 of file board.cpp. References at(), FALSE, fixBits, inBounds(), prison, and TRUE. Referenced by Painter::drawPrison(), Painter::initRoomPixmap(), and isWay(). |
|
|
Definition at line 955 of file wordgame.cpp. References idx(), rule_effect, rule_shape, and Start. Referenced by score(). |
|
|
Definition at line 251 of file board.cpp. References at(), FALSE, fixBits, inBounds(), TRUE, and tunnel. Referenced by isWay(), and Fruit::move(). |
|
||||||||||||||||
|
Definition at line 293 of file board.cpp. References brick, E, empty, FALSE, gate, isBrick(), isEmpty(), isGate(), isOut(), isPrison(), isTunnel(), move(), N, out, OUT, prison, S, TRUE, tunnel, and W. Referenced by Pacman::move(), Monster::move(), Fruit::move(), and Pacman::setDirection(). |
|
|
Definition at line 229 of file wordgame.h. |
|
|
Referenced by finalizeTurn(), setTile(), setTileState(), Possibilityboard::slotClicked(), tile(), unsetTile(), and unshowTurn(). |
|
|
Definition at line 414 of file board.cpp. References numMonsters. |
|
|
Definition at line 591 of file oyatzee.cpp. References clicked(). |
|
||||||||||||||||
|
Definition at line 332 of file board.cpp. References BoardWidth, E, N, NE, NW, S, SE, SW, sz, turn(), W, and x(). Referenced by Painter::drawBrick(), Painter::drawPrison(), isWay(), Pacman::move(), Monster::move(), and Fruit::move(). |
|
|
Definition at line 404 of file board.cpp. References numPoints. Referenced by Referee::timerEvent(). |
|
||||||||||||
|
Definition at line 199 of file board.cpp. References energizer, energizerPosition, fruit, fruitHome, fruithome, fruitPosition, monster, monsterHome, monsterhome, monsterPosition, OUT, pacman, pacmanHome, pacmanhome, pacmanPosition, prisonEntry, prisonentry, prisonExit, prisonexit, tunnel, and tunnelPosition. Referenced by Referee::initFruit(), Referee::initPacman(), Referee::killedPlay(), Monster::Monster(), Monster::move(), Fruit::move(), Referee::paintEvent(), Referee::play(), Referee::ready(), Referee::repaintFigures(), and Fruit::setMovement(). |
|
|
Definition at line 813 of file wordgame.cpp. References QValueList< T >::begin(), clear(), QValueList< T >::end(), i, p, Config::readListEntry(), setTile(), and t. Referenced by WordGame::readConfig(). |
|
||||||||||||||||
|
Definition at line 175 of file board.cpp. References at(), empty, energizer, energizerBit, energizerPosition, FALSE, fruit, fruitBit, fruitPosition, inBounds(), monster, monsterBit, monsterPosition, numEnergizers, numPoints, OUT, out, pacman, pacmanBit, pacmanPosition, Point, pointBit, TRUE, and varBits. Referenced by Pacman::move(), Monster::move(), Pacman::setPosition(), Monster::setPosition(), Fruit::setPosition(), Energizer::setPosition(), and Referee::timerEvent(). |
|
|
Definition at line 845 of file wordgame.cpp. References unshowTurn(). Referenced by contentsMouseMoveEvent(), and WordGame::resetTurn(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 1058 of file wordgame.cpp. References QString::append(), bonussedValue(), contains(), Global::dawg(), FALSE, Global::fixedDawg(), i, isStart(), QString::length(), QString::prepend(), rack_tiles, rack_tiles_bonus, t, Tile::text(), tile(), and TRUE. Referenced by checkTurn(), ComputerPlayer::noteChoice(), and scoreTurn(). |
|
||||||||||||||||
|
Definition at line 1043 of file wordgame.cpp. References Rack::count(), current_rack, FALSE, i, score(), shown_at, shown_n, shown_step, temporaryScore(), Rack::tileRef(), turn_score, and unshowTurn(). Referenced by contentsMouseMoveEvent(), and ComputerPlayer::step(). |
|
||||||||||||||||
|
Definition at line 130 of file board.cpp. References at(), empty, energizer, energizerBit, energizerPosition, fruit, fruitBit, fruitHome, fruithome, fruitPosition, inBounds(), monster, monsterBit, monsterHome, monsterhome, monsterPosition, numEnergizers, numMonsters, numPoints, numTunnels, OUT, out, pacman, pacmanBit, pacmanHome, pacmanhome, pacmanPosition, Point, pointBit, prisonEntry, prisonentry, prisonExit, prisonexit, tunnel, and tunnelPosition. Referenced by Referee::introPlay(), Pacman::move(), Monster::move(), Pacman::setPosition(), Monster::setPosition(), Fruit::setPosition(), Energizer::setPosition(), and setup(). |
|
|
Definition at line 839 of file wordgame.cpp. References current_rack, and turn_score. Referenced by WordGame::readyRack(). |
|
||||||||||||
|
Definition at line 1166 of file wordgame.cpp. References i, rack_tiles_bonus, rule_effect, rule_shape, x(), xTiles(), y(), and yTiles(). Referenced by WordGame::loadRules(). |
|
||||||||||||
|
Definition at line 1187 of file wordgame.cpp. References FALSE, grid, idx(), item(), and TileItem::setTile(). Referenced by readConfig(), and showTurn(). |
|
||||||||||||
|
Definition at line 196 of file wordgame.h. References item(), and TileItem::setState(). Referenced by finalizeTurn(), and showTurn(). |
|
|
Definition at line 103 of file board.cpp. References BoardHeight, BoardWidth, brick, energizer, fruithome, gate, monsterhome, out, pacmanhome, Point, prison, prisonentry, prisonexit, set(), and tunnel. Referenced by init(). |
|
|
Definition at line 925 of file wordgame.cpp. References at(), contains(), current_rack, TileItem::Floating, i, setTile(), setTileState(), shown_at, shown_n, shown_step, t, Rack::tile(), tile(), and unshowTurn(). Referenced by checkTurn(), contentsMouseMoveEvent(), and ComputerPlayer::step(). |
|
|
Definition at line 799 of file wordgame.cpp. |
|
|
Referenced by scoreTurn(). |
|
|
Definition at line 187 of file wordgame.h. References item(), and TileItem::tile(). Referenced by contentsMouseMoveEvent(), finalizeTurn(), ComputerPlayer::findBest(), score(), showTurn(), and writeConfig(). |
|
|
Definition at line 419 of file board.cpp. References numTunnels. Referenced by Referee::initFruit(), and Fruit::move(). |
|
|
Definition at line 389 of file board.cpp. References E, N, NE, NW, S, SE, SW, and W. Referenced by Pacman::move(), Monster::move(), Fruit::move(), move(), and Referee::timerEvent(). |
|
|
Definition at line 214 of file wordgame.h. References turn_score. Referenced by WordGame::endTurn(), and WordGame::think(). |
|
|
Definition at line 1181 of file wordgame.cpp. References grid, idx(), and item(). Referenced by unshowTurn(). |
|
|
Definition at line 912 of file wordgame.cpp. References at(), contains(), TileItem::Floating, i, item(), shown_at, shown_n, shown_step, and unsetTile(). Referenced by checkTurn(), contentsMouseMoveEvent(), resetRack(), scoreTurn(), and showTurn(). |
|
|
Definition at line 804 of file wordgame.cpp. References QValueList< T >::append(), grid, i, t, tile(), and Config::writeEntry(). Referenced by WordGame::writeConfig(). |
|
|
Definition at line 379 of file board.cpp. References BoardWidth. Referenced by closeup(), isJump(), Monster::move(), move(), Painter::point(), and setRules(). |
|
|
Definition at line 180 of file wordgame.h. Referenced by setRules(), and ComputerPlayer::step(). |
|
|
Definition at line 384 of file board.cpp. References BoardWidth. Referenced by closeup(), Monster::move(), Painter::point(), and setRules(). |
|
|
Definition at line 181 of file wordgame.h. Referenced by setRules(), and ComputerPlayer::step(). |
|
|
Definition at line 235 of file wordgame.h. Referenced by Board(), checkTurn(), contentsMouseMoveEvent(), contentsMouseReleaseEvent(), finalizeTurn(), scoreTurn(), setCurrentRack(), and showTurn(). |
|
|
Definition at line 237 of file wordgame.h. Referenced by contentsMouseMoveEvent(), and contentsMousePressEvent(). |
|
|
Definition at line 93 of file board.h. Referenced by init(), position(), reset(), and set(). |
|
|
Definition at line 88 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 92 of file board.h. Referenced by init(), position(), reset(), and set(). |
|
|
Definition at line 231 of file wordgame.h. Referenced by Board(), clear(), item(), setTile(), unsetTile(), and writeConfig(). |
|
|
|
|
|
|
|
|
Definition at line 87 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 91 of file board.h. Referenced by init(), position(), reset(), and set(). |
|
|
Definition at line 98 of file board.h. Referenced by energizers(), init(), reset(), and set(). |
|
|
Definition at line 96 of file board.h. Referenced by init(), monsters(), and set(). |
|
|
|
|
|
|
|
|
Definition at line 86 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 90 of file board.h. Referenced by init(), position(), reset(), and set(). |
|
|
Definition at line 84 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 85 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 234 of file wordgame.h. Referenced by score(), and setRules(). |
|
|
Definition at line 233 of file wordgame.h. Referenced by bonussedValue(), isStart(), and setRules(). |
|
|
Definition at line 232 of file wordgame.h. Referenced by bonussedValue(), isStart(), and setRules(). |
|
|
Definition at line 238 of file wordgame.h. Referenced by checkTurn(), finalizeTurn(), scoreTurn(), showTurn(), and unshowTurn(). |
|
|
Definition at line 239 of file wordgame.h. Referenced by Board(), checkTurn(), finalizeTurn(), scoreTurn(), showTurn(), and unshowTurn(). |
|
|
Definition at line 240 of file wordgame.h. Referenced by checkTurn(), finalizeTurn(), scoreTurn(), showTurn(), and unshowTurn(). |
|
|
Definition at line 79 of file board.h. Referenced by Board(), inBounds(), isJump(), and move(). |
|
|
Definition at line 94 of file board.h. Referenced by init(), position(), and set(). |
|
|
Definition at line 242 of file wordgame.h. Referenced by checkTurn(), scoreTurn(), setCurrentRack(), and turnScore(). |
1.4.2