#include <Bomb.h>
Inheritance diagram for Bomb:
Public Methods | |
Bomb (const Rect &initPos, int initDir, float size, float delay) | |
Construct a bomb at a specified map location, blast size, and detonation delay. | |
virtual | ~Bomb () |
Destructor. | |
virtual bool | update (float dt) |
Update the bomb's logic. | |
virtual void | draw (const Point &anchor) |
Draw the bomb on the screen using the specified anchor point. | |
virtual float | getHeight () const |
Returns the current height. | |
virtual void | doCollision (Entity *otherEntity) |
Handles the collision between 2 entities by finding what type of entities they are and then handling the different types of collisions;. | |
Protected Methods | |
void | blowUp () |
Tells the bomb to create explosions. | |
Bomb () | |
Bomb is not defaultly constructable. | |
Protected Attributes | |
float | blastSize |
The size of this bomb's explosion. | |
float | explodeTime |
The time at which this bomb explodes. | |
float | height |
The bomb's current height. | |
int | pSoFar |
Number of particles spawned so far. | |
float | timeLived |
Amount of time lived so far. |
|
Construct a bomb at a specified map location, blast size, and detonation delay.
|
|
Destructor.
|
|
Bomb is not defaultly constructable.
|
|
Tells the bomb to create explosions.
|
|
Handles the collision between 2 entities by finding what type of entities they are and then handling the different types of collisions;.
Reimplemented from Entity. Reimplemented in ThrownBomb. |
|
Draw the bomb on the screen using the specified anchor point.
Implements Entity. Reimplemented in HomingBomb, and ThrownBomb. |
|
Returns the current height.
Reimplemented from Drawable. |
|
Update the bomb's logic.
Implements Entity. Reimplemented in HomingBomb, and ThrownBomb. |
|
The size of this bomb's explosion.
|
|
The time at which this bomb explodes.
|
|
The bomb's current height.
|
|
Number of particles spawned so far.
|
|
Amount of time lived so far.
|