#include </home/clem/local/src/opie/noncore/games/kpacman/painter.h>
Collaboration diagram for Painter:

Public Member Functions | |
| Painter (Board *, QWidget *parent=0, int scheme=-1, int mode=-1, Bitfont *font=0) | |
| QPixmap | levelPix () |
| void | setScheme (int scheme=-1, int mode=-1, Bitfont *font=0) |
| void | setLevel (int level=0) |
| QRect | rect (int pos, PixMap pix, uint i=0) |
| QRect | rect (int pos, QString str, int align=QLabel::AlignCenter) |
| QRect | rect (QRect r1, QRect r2) |
| void | draw (QPoint point, DrawWidget where, QPixmap pix) |
| void | draw (QRect rect, DrawWidget where, QPixmap pix) |
| void | draw (int pos, DrawWidget where, PixMap pix, uint i=0) |
| QPixmap | draw (int pos, DrawWidget where, QString str, QColor fg, QColor bg=QColor(), int align=QLabel::AlignCenter) |
| QRect | draw (int col, int row, DrawWidget where, QString str, QColor fg, QColor bg=QColor(), int align=QLabel::AlignCenter) |
| void | drawBrick (int pos) |
| void | drawPrison (int pos) |
| void | drawPoint (int pos) |
| void | erase (int pos, PixMap pix, uint i=0) |
| int | maxPixmaps (PixMap pix) |
Protected Member Functions | |
| QString | decodeHexOctString (QString str) |
| void | fillScoreString (QStrList &, QArray< int > &) |
| void | fillArray (QArray< int > &, QString, int) |
| void | fillStrList (QStrList &, QString, int) |
| void | fillPixmapName (QStrList &) |
| void | confScheme () |
| void | confLevels (bool defGroup=TRUE) |
| void | confMisc (bool defGroup=TRUE) |
| void | confScoring (bool defGroup=TRUE) |
| void | initPixmaps () |
| void | initRoomPixmap () |
| void | initbackPixmaps () |
Private Member Functions | |
| QList< QPixmap > * | loadPixmap (QWidget *parent, QString pixmapName, QList< QPixmap > *pixmaps=0) |
| QList< QPixmap > * | textPixmap (QStrList &, QList< QPixmap > *pixmaps=0, QColor fg=BLACK, QColor bg=QColor()) |
| QList< QPixmap > * | textPixmap (QString str, QList< QPixmap > *pixmaps=0, QColor fg=BLACK, QColor bg=QColor()) |
| QPoint | point (int pos) |
| int | checkRange (int value, int max, int min=0) |
Private Attributes | |
| QWidget * | w |
| Board * | board |
| Bitfont * | bitfont |
| int | BlockWidth |
| int | BlockHeight |
| QArray< int > | fruitScore |
| QStrList | fruitScoreString |
| QArray< int > | monsterScore |
| QStrList | monsterScoreString |
| QString | pixmapDirectory |
| QStrList | pointPixmapName |
| QStrList | wallPixmapName |
| QStrList | prisonPixmapName |
| QStrList | energizerPixmapName |
| QStrList | fruitPixmapName |
| QStrList | pacmanPixmapName |
| QStrList | dyingPixmapName |
| QStrList | eyesPixmapName |
| QStrList | monsterPixmapName |
| QStrList | fruitScorePixmapName |
| QStrList | monsterScorePixmapName |
| QString | lastPointPixmapName |
| QString | lastWallPixmapName |
| QString | lastPrisonPixmapName |
| QString | lastEnergizerPixmapName |
| QString | lastFruitPixmapName |
| QString | lastPacmanPixmapName |
| QString | lastDyingPixmapName |
| QString | lastEyesPixmapName |
| QString | lastMonsterPixmapName |
| QString | lastFruitScorePixmapName |
| QString | lastMonsterScorePixmapName |
| QList< QPixmap > * | wallPix |
| QList< QPixmap > * | prisonPix |
| QList< QPixmap > * | pointPix |
| QList< QPixmap > * | energizerPix |
| QList< QPixmap > * | fruitPix |
| QList< QPixmap > * | pacmanPix |
| QList< QPixmap > * | dyingPix |
| QList< QPixmap > * | eyesPix |
| QList< QPixmap > * | monsterPix |
| QList< QPixmap > * | fruitScorePix |
| QList< QPixmap > * | monsterScorePix |
| QPixmap | roomPix |
| QPixmap | backPix |
| bool | plainColor |
| QColor | backgroundColor |
| int | maxLevel |
| int | level |
| int | scheme |
| int | mode |
|
||||||||||||||||||||||||
|
Definition at line 18 of file painter.cpp. References bitfont, board, confScheme(), dyingPix, energizerPix, eyesPix, fruitPix, fruitScorePix, lastDyingPixmapName, lastEnergizerPixmapName, lastEyesPixmapName, lastFruitPixmapName, lastFruitScorePixmapName, lastMonsterPixmapName, lastMonsterScorePixmapName, lastPacmanPixmapName, lastPointPixmapName, lastPrisonPixmapName, lastWallPixmapName, level, mode, monsterPix, monsterScorePix, NULL, pacmanPix, pointPix, prisonPix, scheme, w, and wallPix. |
|
||||||||||||||||
|
Definition at line 952 of file painter.cpp. References printf. |
|
|
Definition at line 772 of file painter.cpp. References APP_CONFIG_BEGIN, APP_CONFIG_END, and maxLevel. Referenced by confScheme(). |
|
|
Definition at line 780 of file painter.cpp. References APP_CONFIG_BEGIN, APP_CONFIG_END, QString::append(), dyingPixmapName, energizerPixmapName, eyesPixmapName, fillStrList(), fruitPixmapName, fruitScorePixmapName, QString::insert(), QString::left(), maxLevel, monsterPixmapName, monsterScorePixmapName, pacmanPixmapName, pixmapDirectory, pointPixmapName, prisonPixmapName, QString::right(), and wallPixmapName. Referenced by confScheme(). |
|
|
Definition at line 850 of file painter.cpp. References APP_CONFIG_BEGIN, APP_CONFIG_END, QPtrList< type >::at(), confLevels(), confMisc(), confScoring(), dyingPixmapName, energizerPixmapName, eyesPixmapName, FALSE, fillPixmapName(), fillScoreString(), fruitPixmapName, fruitScore, fruitScorePixmapName, fruitScoreString, initbackPixmaps(), initPixmaps(), initRoomPixmap(), mode, monsterPixmapName, monsterScore, monsterScorePixmapName, monsterScoreString, pacmanPixmapName, pointPixmapName, prisonPixmapName, RESTORE_CONFIG_GROUP, SAVE_CONFIG_GROUP, scheme, QString::sprintf(), and wallPixmapName. Referenced by Painter(), and setScheme(). |
|
|
Definition at line 829 of file painter.cpp. References APP_CONFIG_BEGIN, APP_CONFIG_END, fillArray(), fillStrList(), fruitScore, fruitScoreString, maxLevel, monsterScore, and monsterScoreString. Referenced by confScheme(). |
|
|
Definition at line 634 of file painter.cpp. References FALSE, QString::fill(), QString::find(), len, QString::length(), QString::mid(), pos, QString::replace(), and v. Referenced by fillStrList(). |
|
||||||||||||||||||||||||||||||||
|
Definition at line 346 of file painter.cpp. References bitfont, BoardWidth, draw(), rect(), and Bitfont::text(). |
|
||||||||||||||||||||||||||||
|
Definition at line 323 of file painter.cpp. References backPix, BackPix, bitBlt(), bitfont, rect(), roomPix, RoomPix, Bitfont::text(), w, and Widget. |
|
||||||||||||||||||||
|
Definition at line 275 of file painter.cpp. References at(), backPix, BackPix, bitBlt(), checkRange(), dyingPix, DyingPix, energizerPix, EnergizerPix, eyesPix, EyesPix, fruitPix, FruitPix, fruitScorePix, FruitScorePix, monsterPix, MonsterPix, monsterScorePix, MonsterScorePix, NULL, pacmanPix, PacmanPix, point(), rect(), roomPix, RoomPix, w, and Widget. |
|
||||||||||||||||
|
Definition at line 270 of file painter.cpp. References draw(). |
|
||||||||||||||||
|
Definition at line 258 of file painter.cpp. References backPix, BackPix, bitBlt(), roomPix, RoomPix, w, and Widget. Referenced by draw(), Referee::introMonster(), Referee::introPaint(), and Referee::paintEvent(). |
|
|
Definition at line 450 of file painter.cpp. References bitBlt(), board, E, Board::isBrick(), Board::isOut(), Board::move(), N, NE, NW, rect(), roomPix, S, SE, SW, W, wallPix, and WallPix. Referenced by initRoomPixmap(). |
|
|
Definition at line 626 of file painter.cpp. References bitBlt(), PointPix, pointPix, rect(), and roomPix. Referenced by initRoomPixmap(), and Referee::introPlay(). |
|
|
Definition at line 553 of file painter.cpp. References bitBlt(), board, E, Board::isGate(), Board::isPrison(), Board::move(), N, NE, NW, prisonPix, PrisonPix, rect(), roomPix, S, SE, SW, and W. Referenced by initRoomPixmap(). |
|
||||||||||||||||
|
Definition at line 231 of file painter.cpp. References backPix, bitBlt(), OUT, rect(), and roomPix. Referenced by Referee::timerEvent(). |
|
||||||||||||||||
|
Definition at line 700 of file painter.cpp. References QString::find(), i, QString::left(), QString::length(), QString::remove(), and QString::toInt(). Referenced by confScoring(). |
|
|
Definition at line 747 of file painter.cpp. References QString::append(), QPtrList< type >::at(), QPtrList< type >::count(), FIND_APP_DATA, i, QFileInfo::isFile(), QFileInfo::isReadable(), QString::left(), list, pixmapDirectory, and QFileInfo::setFile(). Referenced by confScheme(). |
|
||||||||||||
|
Definition at line 672 of file painter.cpp. References QString::data(), i, QString::insert(), and s. Referenced by confScheme(). |
|
||||||||||||||||
|
Definition at line 724 of file painter.cpp. References decodeHexOctString(), QString::find(), i, QString::isEmpty(), QString::left(), QString::length(), and QString::remove(). Referenced by confMisc(), and confScoring(). |
|
|
Definition at line 427 of file painter.cpp. References backgroundColor, backPix, BLACK, BlockHeight, BlockWidth, BoardHeight, and BoardWidth. Referenced by confScheme(), and setLevel(). |
|
|
|
Definition at line 435 of file painter.cpp. References backPix, bitBlt(), BlockHeight, BlockWidth, board, BoardHeight, BoardWidth, drawBrick(), drawPoint(), drawPrison(), Board::isBrick(), Board::isGate(), Board::isPoint(), Board::isPrison(), roomPix, size, and Opie::MM::x. Referenced by confScheme(), and setLevel(). |
|
|
Definition at line 32 of file painter.h. References roomPix. Referenced by Referee::paintEvent(), Referee::Referee(), and Referee::setScheme(). |
|
||||||||||||||||
|
Definition at line 56 of file painter.cpp. References bitBlt(), QString::data(), height, NULL, printf, QString::replace(), TRUE, width, and Opie::MM::x. Referenced by initPixmaps(). |
|
|
Definition at line 240 of file painter.cpp. References dyingPix, DyingPix, energizerPix, EnergizerPix, eyesPix, EyesPix, fruitPix, FruitPix, fruitScorePix, FruitScorePix, monsterPix, MonsterPix, monsterScorePix, MonsterScorePix, pacmanPix, PacmanPix, pointPix, PointPix, prisonPix, PrisonPix, wallPix, and WallPix. Referenced by Referee::initEnergizers(), Referee::initFruit(), Referee::initMonsters(), Referee::initPacman(), Referee::introMonster(), Referee::killedPlay(), Referee::paintEvent(), and Referee::setScheme(). |
|
|
Definition at line 137 of file painter.cpp. References BlockHeight, BlockWidth, board, Board::x(), and Board::y(). |
|
||||||||||||
|
Definition at line 220 of file painter.cpp. References rect(). |
|
||||||||||||||||
|
Definition at line 190 of file painter.cpp. References bitfont, Bitfont::height(), QString::length(), OUT, point(), Bitfont::rect(), rect(), and Bitfont::width(). |
|
||||||||||||||||
|
Definition at line 143 of file painter.cpp. References at(), checkRange(), dyingPix, DyingPix, energizerPix, EnergizerPix, eyesPix, EyesPix, fruitPix, FruitPix, fruitScorePix, FruitScorePix, monsterPix, MonsterPix, monsterScorePix, MonsterScorePix, NULL, OUT, pacmanPix, PacmanPix, point(), pointPix, PointPix, and wallPix. Referenced by draw(), drawBrick(), drawPoint(), drawPrison(), Referee::eaten(), erase(), Referee::introMonster(), Referee::introPlay(), Referee::killedPlay(), Referee::levelUp(), Referee::levelUpPlay(), Referee::paintEvent(), Referee::pause(), Referee::play(), Referee::ready(), rect(), Referee::repaintFigures(), Referee::start(), and Referee::timerEvent(). |
|
|
Definition at line 943 of file painter.cpp. References initbackPixmaps(), initPixmaps(), initRoomPixmap(), and level. Referenced by Referee::demo(), Referee::intro(), Referee::levelUpPlay(), and Referee::play(). |
|
||||||||||||||||
|
Definition at line 933 of file painter.cpp. References bitfont, confScheme(), mode, and scheme. Referenced by Referee::setScheme(). |
|
||||||||||||||||||||
|
Definition at line 117 of file painter.cpp. References bitfont, NULL, Bitfont::text(), and TRUE. |
|
||||||||||||||||||||
|
Definition at line 98 of file painter.cpp. References bitfont, NULL, s, Bitfont::text(), and TRUE. Referenced by initPixmaps(). |
|
|
Definition at line 139 of file painter.h. Referenced by initbackPixmaps(). |
|
|
Definition at line 136 of file painter.h. Referenced by draw(), erase(), initbackPixmaps(), and initRoomPixmap(). |
|
|
Definition at line 77 of file painter.h. Referenced by draw(), Painter(), rect(), setScheme(), and textPixmap(). |
|
|
Definition at line 80 of file painter.h. Referenced by initbackPixmaps(), initPixmaps(), initRoomPixmap(), and point(). |
|
|
Definition at line 79 of file painter.h. Referenced by initbackPixmaps(), initPixmaps(), initRoomPixmap(), and point(). |
|
|
Definition at line 76 of file painter.h. Referenced by drawBrick(), drawPrison(), initRoomPixmap(), Painter(), and point(). |
|
|
Definition at line 129 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 95 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 126 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 92 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 130 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 96 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 127 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 93 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 82 of file painter.h. Referenced by confScheme(), and confScoring(). |
|
|
Definition at line 132 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 98 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 83 of file painter.h. Referenced by confScheme(), confScoring(), and initPixmaps(). |
|
|
Definition at line 107 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 104 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 108 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 105 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 110 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 109 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 111 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 106 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 101 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 103 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 102 of file painter.h. Referenced by initPixmaps(), and Painter(). |
|
|
Definition at line 142 of file painter.h. Referenced by initPixmaps(), Painter(), and setLevel(). |
|
|
Definition at line 141 of file painter.h. Referenced by confLevels(), confMisc(), and confScoring(). |
|
|
Definition at line 145 of file painter.h. Referenced by confScheme(), Painter(), and setScheme(). |
|
|
Definition at line 131 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 97 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 84 of file painter.h. Referenced by confScheme(), and confScoring(). |
|
|
Definition at line 133 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 99 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 85 of file painter.h. Referenced by confScheme(), confScoring(), and initPixmaps(). |
|
|
Definition at line 128 of file painter.h. Referenced by draw(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 94 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 87 of file painter.h. Referenced by confMisc(), and fillPixmapName(). |
|
|
|
|
|
Definition at line 125 of file painter.h. Referenced by drawPoint(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 89 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 124 of file painter.h. Referenced by drawPrison(), initPixmaps(), maxPixmaps(), and Painter(). |
|
|
Definition at line 91 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
|
|
Definition at line 135 of file painter.h. Referenced by draw(), drawBrick(), drawPoint(), drawPrison(), erase(), initRoomPixmap(), and levelPix(). |
|
|
Definition at line 144 of file painter.h. Referenced by confScheme(), Painter(), and setScheme(). |
|
|
Definition at line 75 of file painter.h. Referenced by draw(), initPixmaps(), and Painter(). |
|
|
Definition at line 123 of file painter.h. Referenced by drawBrick(), initPixmaps(), maxPixmaps(), Painter(), and rect(). |
|
|
Definition at line 90 of file painter.h. Referenced by confMisc(), confScheme(), and initPixmaps(). |
1.4.2