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

Peg Class Reference

List of all members.

Public Member Functions

 Peg (QCanvas *canvas, int type, int go=-1, int pos=-1)
int rtti () const
void advance (int phase)
bool hit (const QPoint &) const
bool placed () const
void setPlaced (bool)
int pegGo () const
int pegPos () const
void setPegPos (int)
int type () const

Static Public Member Functions

static void buildImages ()
static QImage imageForType (int t)

Static Public Attributes

static int eggLevel = 0

Protected Member Functions

void drawShape (QPainter &)

Private Attributes

bool isplaced
int pegtype
int peg_go
int peg_pos
int aniStep

Static Private Attributes

static QVector< QImage > normalPegs
static QVector< QImage > specialPegs

Constructor & Destructor Documentation

Peg::Peg QCanvas *  canvas,
int  type,
int  go = -1,
int  pos = -1
 

Definition at line 199 of file mindbreaker.cpp.

References aniStep, FALSE, height, isplaced, normalPegs, peg_go, peg_pos, pegtype, TRUE, and width.


Member Function Documentation

void Peg::advance int  phase  ) 
 

Definition at line 211 of file mindbreaker.cpp.

References aniStep.

void Peg::buildImages  )  [static]
 

Definition at line 141 of file mindbreaker.cpp.

References adjusted_answerpeg_size, adjusted_panel_height, adjusted_panel_width, adjusted_peg_size, adjusted_title_height, adjusted_title_width, answerpeg_size, eggLevel, i, image, Opie::Core::OResource::loadImage(), normalPegs, panel_height, panel_width, peg_size, specialPegs, title_height, title_width, Opie::MM::x, and Opie::MM::y.

Referenced by MindBreakerBoard::doFixSize().

void Peg::drawShape QPainter &   )  [protected]
 

Definition at line 220 of file mindbreaker.cpp.

References aniStep, eggLevel, imageForType(), normalPegs, pegtype, Opie::MM::x, and Opie::MM::y.

bool Peg::hit const QPoint &   )  const
 

Definition at line 228 of file mindbreaker.cpp.

References FALSE, normalPegs, pegtype, Opie::MM::x, and Opie::MM::y.

Referenced by MindBreakerBoard::contentsMousePressEvent().

QImage Peg::imageForType int  t  )  [static]
 

Definition at line 187 of file mindbreaker.cpp.

References eggLevel, normalPegs, and specialPegs.

Referenced by MindBreakerBoard::drawBackground(), and drawShape().

int Peg::pegGo  )  const [inline]
 

Definition at line 243 of file mindbreaker.cpp.

References peg_go.

Referenced by MindBreakerBoard::contentsMousePressEvent().

int Peg::pegPos  )  const [inline]
 

Definition at line 248 of file mindbreaker.cpp.

References peg_pos.

Referenced by MindBreakerBoard::contentsMouseReleaseEvent().

bool Peg::placed  )  const [inline]
 

Definition at line 238 of file mindbreaker.cpp.

References isplaced.

Referenced by MindBreakerBoard::contentsMousePressEvent().

int Peg::rtti  )  const [inline]
 

Definition at line 103 of file mindbreaker.cpp.

References pegRTTI.

void Peg::setPegPos int   )  [inline]
 

Definition at line 253 of file mindbreaker.cpp.

References peg_pos.

Referenced by MindBreakerBoard::contentsMouseReleaseEvent(), and MindBreakerBoard::placeGuessPeg().

void Peg::setPlaced bool   )  [inline]
 

Definition at line 258 of file mindbreaker.cpp.

References isplaced.

Referenced by MindBreakerBoard::checkGuess(), MindBreakerBoard::doFixSize(), and MindBreakerBoard::placeGuessPeg().

int Peg::type  )  const [inline]
 

Definition at line 263 of file mindbreaker.cpp.

References pegtype.

Referenced by MindBreakerBoard::contentsMousePressEvent().


Member Data Documentation

int Peg::aniStep [private]
 

Definition at line 135 of file mindbreaker.cpp.

Referenced by advance(), drawShape(), and Peg().

int Peg::eggLevel = 0 [static]
 

Definition at line 137 of file mindbreaker.cpp.

Referenced by buildImages(), MindBreakerBoard::checkScores(), drawShape(), imageForType(), and MindBreakerBoard::resetScore().

bool Peg::isplaced [private]
 

Definition at line 130 of file mindbreaker.cpp.

Referenced by Peg(), placed(), and setPlaced().

QVector< QImage > Peg::normalPegs [static, private]
 

Definition at line 138 of file mindbreaker.cpp.

Referenced by buildImages(), drawShape(), hit(), imageForType(), and Peg().

int Peg::peg_go [private]
 

Definition at line 132 of file mindbreaker.cpp.

Referenced by Peg(), and pegGo().

int Peg::peg_pos [private]
 

Definition at line 133 of file mindbreaker.cpp.

Referenced by Peg(), pegPos(), and setPegPos().

int Peg::pegtype [private]
 

Definition at line 131 of file mindbreaker.cpp.

Referenced by drawShape(), hit(), Peg(), and type().

QVector< QImage > Peg::specialPegs [static, private]
 

Definition at line 139 of file mindbreaker.cpp.

Referenced by buildImages(), and imageForType().


The documentation for this class was generated from the following file:
Generated on Sat Nov 5 17:44:30 2005 for OPIE by  doxygen 1.4.2