Hosting courtesy of Sourceforge

SourceForge Logo
Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Game::Bomb Class Reference

#include <Bomb.h>

Inheritance diagram for Game::Bomb:

Inheritance graph
[legend]
Collaboration diagram for Game::Bomb:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual bool tick ()
virtual int getBombRadius ()

Constructor & Destructor Documentation

Bomb::Bomb Sint16    x,
Sint16    y,
int    bombRad,
int    moveSpeed = 0,
int    numTicks = Constants::DEFAULT_BOMB_TICKS
 

Definition at line 24 of file Bomb.cpp.

Bomb::~Bomb   [virtual]
 

Definition at line 37 of file Bomb.cpp.


Member Function Documentation

void Bomb::draw SDL_Surface *    screen [virtual]
 

Reimplemented from Graphics::Drawable.

Definition at line 52 of file Bomb.cpp.

int Bomb::getBombRadius   [virtual]
 

Returns the radius of the bomb (maximum length of explosion in any cardinal direction)

Definition at line 42 of file Bomb.cpp.

bool Bomb::tick   [virtual]
 

Tells bomb to tick. Repeated ticking causes explosion

Returns:
true if bomb exploded

Definition at line 46 of file Bomb.cpp.


Member Data Documentation

int Game::Bomb::bombRadius [protected]
 

Definition at line 47 of file Bomb.h.

Graphics::DrawableAt* Game::Bomb::img [protected]
 

Definition at line 48 of file Bomb.h.

int Game::Bomb::numTicksTilExplosion [protected]
 

Definition at line 49 of file Bomb.h.


The documentation for this class was generated from the following files:
Generated on Tue May 21 07:26:52 2002 for BomberLAN by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001