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

Ball Class Reference

#include </home/clem/local/src/opie/noncore/games/bounce/game.h>

List of all members.

Public Member Functions

 Ball (QCanvasPixmapArray *array, QCanvas *canvas)
void update ()
void advance (int stage)
bool collide (double dx=0, double dy=0)

Protected Attributes

int m_animDelay
int m_soundDelay


Constructor & Destructor Documentation

Ball::Ball QCanvasPixmapArray *  array,
QCanvas *  canvas
 

Definition at line 72 of file game.cpp.


Member Function Documentation

void Ball::advance int  stage  ) 
 

Definition at line 91 of file game.cpp.

References collide(), JezzField::emitBallCollisiton(), TILE_FREE, TILE_SIZE, and update().

bool Ball::collide double  dx = 0,
double  dy = 0
 

Definition at line 125 of file game.cpp.

References TILE_FREE, and TILE_SIZE.

Referenced by advance().

void Ball::update  ) 
 

Definition at line 77 of file game.cpp.

References BALL_ANIM_DELAY, frame, m_animDelay, and MS2TICKS.

Referenced by advance().


Member Data Documentation

int Ball::m_animDelay [protected]
 

Definition at line 53 of file game.h.

Referenced by update().

int Ball::m_soundDelay [protected]
 

Definition at line 54 of file game.h.


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