Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

Explosion Class Reference

Takes care of the explosion for each bomb, it takes the blast size and position of the start of the explosion and creates the whole blast from there. More...

#include <Explosion.h>

Inheritance diagram for Explosion:

Entity Drawable List of all members.

Public Methods

 Explosion ()
 Default constructor.

 Explosion (const Rect &initPos, float initHeight)
 Construct a explosion at a specified map location, blast size.

virtual ~Explosion ()
 Destructor.

virtual bool update (float dt)
 Update the explosion.

virtual void draw (const Point &anchor)
 Draw the explosion on the screen using the specified anchor point.

virtual float getHeight () const
 Returns the height of the object.

virtual void setScaleSize (float s)
virtual void setOffsets (int x, int y)

Detailed Description

Takes care of the explosion for each bomb, it takes the blast size and position of the start of the explosion and creates the whole blast from there.


Constructor & Destructor Documentation

Explosion::Explosion  
 

Default constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

Explosion::Explosion const Rect   initPos,
float    initHeight
 

Construct a explosion at a specified map location, blast size.

Parameters:
initPos  the initial map position

Explosion::~Explosion   [virtual]
 

Destructor.


Member Function Documentation

void Explosion::draw const Point   anchor [virtual]
 

Draw the explosion on the screen using the specified anchor point.

Parameters:
anchor  the explosions's anchor point

Implements Entity.

float Explosion::getHeight   const [virtual]
 

Returns the height of the object.

If the returned number is negative (the default implementation), the object's height is taken to be the tile's height when it is drawn.

If the number is 0.0f or greater, the height given is taken to be the absolute height, and the tile's height will not be taken into consideration.

The default implementation of getHeight returns a negative number.

Reimplemented from Drawable.

void Explosion::setOffsets int    x,
int    y
[virtual]
 

void Explosion::setScaleSize float    s [virtual]
 

bool Explosion::update float    dt [virtual]
 

Update the explosion.

Parameters:
dt  the amount of time since the last frame
Returns:
true if this explosion is done

Implements Entity.


The documentation for this class was generated from the following files:
Generated on Tue Mar 4 02:29:26 2003 for SuperIsoBomb by doxygen1.2.18