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

Wall Class Reference

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

Collaboration diagram for Wall:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Direction { Up, Down, Left, Right }

Public Slots

void advance ()
void update ()

Signals

void finished (Wall *wall, int tile)

Public Member Functions

 Wall (JezzField *field, int x, int y, Direction dir, int tile, QObject *parent=0, const char *name=0)
void finish ()
void fill (bool black)

Private Member Functions

bool isFree (int x, int y)

Private Attributes

Direction m_dir
JezzFieldm_field
int m_dx
int m_dy
int m_x
int m_y
int m_startX
int m_startY
int m_tile
int m_delay
bool m_active

Member Enumeration Documentation

enum Wall::Direction
 

Enumeration values:
Up 
Down 
Left 
Right 

Definition at line 62 of file game.h.


Constructor & Destructor Documentation

Wall::Wall JezzField field,
int  x,
int  y,
Direction  dir,
int  tile,
QObject *  parent = 0,
const char *  name = 0
 

Definition at line 141 of file game.cpp.

References Down, Left, m_dir, m_dx, m_dy, m_field, m_startX, m_startY, m_tile, m_x, m_y, Right, and Up.


Member Function Documentation

void Wall::advance  )  [slot]
 

Definition at line 185 of file game.cpp.

References finish(), finished(), isFree(), m_active, m_delay, m_dx, m_dy, m_field, m_tile, m_x, m_y, MS2TICKS, TILE_WALLEND, update(), and WALL_DELAY.

void Wall::fill bool  black  ) 
 

Definition at line 218 of file game.cpp.

References m_dx, m_dy, m_field, m_startX, m_startY, m_tile, m_x, m_y, JezzField::setGameTile(), Opie::MM::x, and Opie::MM::y.

Referenced by JezzGame::ballCollision(), and JezzGame::wallFinished().

void Wall::finish  ) 
 

Definition at line 162 of file game.cpp.

References m_active.

Referenced by advance(), and JezzGame::ballCollision().

void Wall::finished Wall wall,
int  tile
[signal]
 

Referenced by advance().

bool Wall::isFree int  x,
int  y
[private]
 

Definition at line 167 of file game.cpp.

References m_field, TILE_FREE, and TILE_SIZE.

Referenced by advance().

void Wall::update  )  [slot]
 

Definition at line 181 of file game.cpp.

Referenced by advance().


Member Data Documentation

bool Wall::m_active [private]
 

Definition at line 87 of file game.h.

Referenced by advance(), and finish().

int Wall::m_delay [private]
 

Definition at line 86 of file game.h.

Referenced by advance().

Direction Wall::m_dir [private]
 

Definition at line 80 of file game.h.

Referenced by Wall().

int Wall::m_dx [private]
 

Definition at line 82 of file game.h.

Referenced by advance(), fill(), and Wall().

int Wall::m_dy [private]
 

Definition at line 82 of file game.h.

Referenced by advance(), fill(), and Wall().

JezzField* Wall::m_field [private]
 

Definition at line 81 of file game.h.

Referenced by advance(), fill(), isFree(), and Wall().

int Wall::m_startX [private]
 

Definition at line 84 of file game.h.

Referenced by fill(), and Wall().

int Wall::m_startY [private]
 

Definition at line 84 of file game.h.

Referenced by fill(), and Wall().

int Wall::m_tile [private]
 

Definition at line 85 of file game.h.

Referenced by advance(), fill(), and Wall().

int Wall::m_x [private]
 

Definition at line 83 of file game.h.

Referenced by advance(), fill(), and Wall().

int Wall::m_y [private]
 

Definition at line 83 of file game.h.

Referenced by advance(), fill(), and Wall().


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