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

BallPainter Class Reference

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

List of all members.

Public Member Functions

 BallPainter ()
 ~BallPainter ()
QPixmap * GetBall (int color, int animstep, int panim)
QPixmap * GetNormalBall (int color)
QPixmap * GetBackgroundPix ()

Private Types

enum  Pixmaps { Field, Balls, Fire }

Private Member Functions

QPixmap * pixmap (enum Pixmaps)
void createPixmap ()

Private Attributes

QPixmap * imgCash [NCOLORS][PIXTIME+FIREBALLS+BOOMBALLS+1]
QPixmap * backgroundPix
QPixmap * firePix [FIREPIX]


Member Enumeration Documentation

enum BallPainter::Pixmaps [private]
 

Enumeration values:
Field 
Balls 
Fire 

Definition at line 32 of file ballpainter.h.


Constructor & Destructor Documentation

BallPainter::BallPainter  ) 
 

Definition at line 37 of file ballpainter.cpp.

References createPixmap().

BallPainter::~BallPainter  ) 
 

Definition at line 43 of file ballpainter.cpp.


Member Function Documentation

void BallPainter::createPixmap  )  [private]
 

Definition at line 65 of file ballpainter.cpp.

References backgroundPix, Balls, BOOMBALLS, CELLSIZE, fatal(), Fire, FIREBALLS, firePix, FIREPIX, imgCash, NCOLORS, p, pixmap(), PIXSIZE, PIXTIME, t, and warning().

Referenced by BallPainter().

QPixmap* BallPainter::GetBackgroundPix  )  [inline]
 

Definition at line 53 of file ballpainter.h.

References ANIM_NO, GetBall(), and NOBALL.

Referenced by LinesPrompt::paintEvent(), and LinesBoard::paintEvent().

QPixmap * BallPainter::GetBall int  color,
int  animstep,
int  panim
 

Definition at line 97 of file ballpainter.cpp.

References ANIM_BORN, ANIM_BURN, ANIM_JUMP, backgroundPix, BOOMBALLS, FIREBALLS, firePix, FIREPIX, imgCash, NCOLORS, NOBALL, NORMALBALL, and PIXTIME.

Referenced by GetBackgroundPix(), GetNormalBall(), and LinesBoard::paintEvent().

QPixmap* BallPainter::GetNormalBall int  color  )  [inline]
 

Definition at line 52 of file ballpainter.h.

References ANIM_NO, and GetBall().

Referenced by LinesPrompt::paintEvent().

QPixmap * BallPainter::pixmap enum  Pixmaps  )  [private]
 

Definition at line 47 of file ballpainter.cpp.

References Balls, Fire, QString::fromLatin1(), Opie::Core::OResource::loadPixmap(), and name.

Referenced by createPixmap().


Member Data Documentation

QPixmap* BallPainter::backgroundPix [private]
 

Definition at line 39 of file ballpainter.h.

Referenced by createPixmap(), and GetBall().

QPixmap* BallPainter::firePix[FIREPIX] [private]
 

Definition at line 40 of file ballpainter.h.

Referenced by createPixmap(), and GetBall().

QPixmap* BallPainter::imgCash[NCOLORS][PIXTIME+FIREBALLS+BOOMBALLS+1] [private]
 

Definition at line 38 of file ballpainter.h.

Referenced by createPixmap(), and GetBall().


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