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

LinesBoard Class Reference

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

Inheritance diagram for LinesBoard:

Inheritance graph
[legend]
Collaboration diagram for LinesBoard:

Collaboration graph
[legend]
List of all members.

Signals

void endTurn ()
void endGame ()
void eraseLine (int nb)

Public Member Functions

 LinesBoard (BallPainter *abPainter, QWidget *parent=0, const char *name=0)
 ~LinesBoard ()
int width ()
int height ()
int wHint ()
int hHint ()
void placeBalls (int nextBalls[BALLSDROP])
void undo ()

Protected Slots

void timerSlot ()

Private Member Functions

void paintEvent (QPaintEvent *)
void mousePressEvent (QMouseEvent *)
void AnimStart (int panim)
void AnimNext ()
int AnimEnd ()
int getAnim (int x, int y)
void AnimJump (int col, int row)
int erase5Balls ()
bool existPath (int ax, int ay, int bx, int by)
void placeBall ()

Private Attributes

int anim
LinesBoard::Waypointsway
int nextBalls [BALLSDROP]
int animmax
int painting
int animstep
int animdelaycount
int animdelaystart
int direction
int nextBallToPlace
int jumpingCol
int jumpingRow
QTimer * timer
BallPainterbPainter

Classes

struct  Waypoints

Constructor & Destructor Documentation

LinesBoard::LinesBoard BallPainter abPainter,
QWidget *  parent = 0,
const char *  name = 0
 

Definition at line 28 of file linesboard.cpp.

References anim, ANIM_NO, bPainter, FALSE, hHint(), NUMCELLSH, NUMCELLSW, painting, timer, TIMERCLOCK, timerSlot(), way, and wHint().

LinesBoard::~LinesBoard  ) 
 

Definition at line 57 of file linesboard.cpp.

References timer, and way.


Member Function Documentation

int LinesBoard::AnimEnd  )  [private]
 

Definition at line 239 of file linesboard.cpp.

References anim, ANIM_BORN, ANIM_BURN, ANIM_NO, ANIM_RUN, animmax, animstep, BALLSDROP, debug, Field::deleteAnimatedBalls(), endGame(), endTurn(), erase5Balls(), eraseLine(), FALSE, Field::freeSpace(), Field::moveBall(), nextBallToPlace, placeBall(), way, Opie::MM::x, and Opie::MM::y.

Referenced by AnimJump(), AnimNext(), AnimStart(), and undo().

void LinesBoard::AnimJump int  col,
int  row
[private]
 

Definition at line 189 of file linesboard.cpp.

References anim, ANIM_JUMP, AnimEnd(), AnimStart(), Field::clearAnim(), debug, Field::getBall(), jumpingCol, jumpingRow, NOBALL, and Field::setAnim().

Referenced by mousePressEvent().

void LinesBoard::AnimNext  )  [private]
 

Definition at line 315 of file linesboard.cpp.

References anim, ANIM_JUMP, ANIM_NO, ANIM_RUN, animdelaycount, animdelaystart, AnimEnd(), animmax, animstep, debug, direction, FALSE, Field::moveBall(), way, Opie::MM::x, and Opie::MM::y.

Referenced by timerSlot().

void LinesBoard::AnimStart int  panim  )  [private]
 

Definition at line 203 of file linesboard.cpp.

References anim, ANIM_BORN, ANIM_BURN, ANIM_JUMP, ANIM_NO, ANIM_RUN, animdelaycount, animdelaystart, AnimEnd(), animmax, animstep, BOOMBALLS, debug, direction, FIREBALLS, FIREPIX, and PIXTIME.

Referenced by AnimJump(), erase5Balls(), existPath(), mousePressEvent(), and placeBall().

void LinesBoard::endGame  )  [signal]
 

Referenced by AnimEnd(), and placeBall().

void LinesBoard::endTurn  )  [signal]
 

Referenced by AnimEnd().

int LinesBoard::erase5Balls  )  [private]
 

Definition at line 354 of file linesboard.cpp.

References ANIM_BURN, ANIM_NO, ANIM_YES, AnimStart(), debug, Field::getBall(), i, NOBALL, NUMCELLSH, NUMCELLSW, Field::setAnim(), Opie::MM::x, and Opie::MM::y.

Referenced by AnimEnd().

void LinesBoard::eraseLine int  nb  )  [signal]
 

Referenced by AnimEnd().

bool LinesBoard::existPath int  ax,
int  ay,
int  bx,
int  by
[private]
 

Definition at line 502 of file linesboard.cpp.

References ANIM_BLOCK, animmax, AnimStart(), debug, Field::getBall(), GO_A, GO_B, GO_BALL, GO_EMPTY, i, NOBALL, NUMCELLSH, NUMCELLSW, way, LinesBoard::Waypoints::x, Opie::MM::x, LinesBoard::Waypoints::y, and Opie::MM::y.

Referenced by mousePressEvent().

int LinesBoard::getAnim int  x,
int  y
[private]
 

Reimplemented from Field.

Definition at line 342 of file linesboard.cpp.

References anim, ANIM_NO, and Field::getAnim().

Referenced by paintEvent().

int LinesBoard::height  ) 
 

Definition at line 125 of file linesboard.cpp.

References CELLSIZE, and NUMCELLSH.

Referenced by hHint(), and paintEvent().

int LinesBoard::hHint  ) 
 

Definition at line 127 of file linesboard.cpp.

References height().

Referenced by LinesBoard().

void LinesBoard::mousePressEvent QMouseEvent *   )  [private]
 

Reimplemented from Field.

Definition at line 159 of file linesboard.cpp.

References anim, ANIM_JUMP, ANIM_NO, ANIM_RUN, AnimJump(), AnimStart(), CELLSIZE, Field::checkBounds(), curCol, debug, existPath(), Field::getBall(), jumpingCol, jumpingRow, NOBALL, and Field::saveUndo().

void LinesBoard::paintEvent QPaintEvent *   )  [private]
 

Reimplemented from Field.

Definition at line 131 of file linesboard.cpp.

References animstep, bitBlt(), bPainter, CELLSIZE, getAnim(), BallPainter::GetBackgroundPix(), BallPainter::GetBall(), Field::getBall(), height(), NOBALL, NUMCELLSH, NUMCELLSW, Field::pixmap, width(), Opie::MM::x, and Opie::MM::y.

void LinesBoard::placeBall  )  [private]
 

Definition at line 76 of file linesboard.cpp.

References ANIM_BORN, AnimStart(), Field::clearAnim(), debug, empty, endGame(), Field::getBall(), nextBalls, nextBallToPlace, NOBALL, NUMCELLSH, NUMCELLSW, pos, Field::putBall(), Field::setAnim(), Opie::MM::x, and Opie::MM::y.

Referenced by AnimEnd(), and placeBalls().

void LinesBoard::placeBalls int  nextBalls[BALLSDROP]  ) 
 

Definition at line 66 of file linesboard.cpp.

References debug, i, nextBalls, nextBallToPlace, and placeBall().

Referenced by KLines::placeBalls().

void LinesBoard::timerSlot  )  [protected, slot]
 

Definition at line 348 of file linesboard.cpp.

References AnimNext().

Referenced by LinesBoard().

void LinesBoard::undo  ) 
 

Definition at line 582 of file linesboard.cpp.

References AnimEnd(), FALSE, and Field::restoreUndo().

Referenced by KLines::undo().

int LinesBoard::wHint  ) 
 

Definition at line 126 of file linesboard.cpp.

References width().

Referenced by LinesBoard().

int LinesBoard::width  ) 
 

Definition at line 124 of file linesboard.cpp.

References CELLSIZE, and NUMCELLSW.

Referenced by paintEvent(), and wHint().


Member Data Documentation

int LinesBoard::anim [private]
 

Definition at line 51 of file linesboard.h.

Referenced by AnimEnd(), AnimJump(), AnimNext(), AnimStart(), getAnim(), LinesBoard(), and mousePressEvent().

int LinesBoard::animdelaycount [private]
 

Definition at line 63 of file linesboard.h.

Referenced by AnimNext(), and AnimStart().

int LinesBoard::animdelaystart [private]
 

Definition at line 64 of file linesboard.h.

Referenced by AnimNext(), and AnimStart().

int LinesBoard::animmax [private]
 

Definition at line 58 of file linesboard.h.

Referenced by AnimEnd(), AnimNext(), AnimStart(), and existPath().

int LinesBoard::animstep [private]
 

Definition at line 62 of file linesboard.h.

Referenced by AnimEnd(), AnimNext(), AnimStart(), and paintEvent().

BallPainter* LinesBoard::bPainter [private]
 

Definition at line 75 of file linesboard.h.

Referenced by LinesBoard(), and paintEvent().

int LinesBoard::direction [private]
 

Definition at line 65 of file linesboard.h.

Referenced by AnimNext(), and AnimStart().

int LinesBoard::jumpingCol [private]
 

Definition at line 69 of file linesboard.h.

Referenced by AnimJump(), and mousePressEvent().

int LinesBoard::jumpingRow [private]
 

Definition at line 70 of file linesboard.h.

Referenced by AnimJump(), and mousePressEvent().

int LinesBoard::nextBalls[BALLSDROP] [private]
 

Definition at line 56 of file linesboard.h.

Referenced by placeBall(), and placeBalls().

int LinesBoard::nextBallToPlace [private]
 

Definition at line 68 of file linesboard.h.

Referenced by AnimEnd(), placeBall(), and placeBalls().

int LinesBoard::painting [private]
 

Definition at line 61 of file linesboard.h.

Referenced by LinesBoard().

QTimer* LinesBoard::timer [private]
 

Reimplemented from Field.

Definition at line 73 of file linesboard.h.

Referenced by LinesBoard(), and ~LinesBoard().

struct LinesBoard::Waypoints * LinesBoard::way [private]
 

Referenced by AnimEnd(), AnimNext(), existPath(), LinesBoard(), and ~LinesBoard().


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