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

ThrownBomb Class Reference

A bomb that has been thrown by the player. More...

#include <ThrownBomb.h>

Inheritance diagram for ThrownBomb:

Bomb Entity Drawable List of all members.

Public Methods

 ThrownBomb ()
 Default constructor.

 ThrownBomb (const Rect &initPos, int initDir, float size, float delay, float power, Character *c)
 Constructor.

virtual ~ThrownBomb ()
 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 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;.


Detailed Description

A bomb that has been thrown by the player.


Constructor & Destructor Documentation

ThrownBomb::ThrownBomb  
 

Default constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

ThrownBomb::ThrownBomb const Rect   initPos,
int    initDir,
float    size,
float    delay,
float    power,
Character   c
 

Constructor.

Parameters:
initPos  initial map position
initDir  initial direction
size  blast size
delay  detonation delay
power  amount of power used to throw the bomb
c  character who threw this bomb

ThrownBomb::~ThrownBomb   [virtual]
 

Destructor.


Member Function Documentation

void ThrownBomb::doCollision Entity   otherEntity [virtual]
 

Handles the collision between 2 entities by finding what type of entities they are and then handling the different types of collisions;.

Parameters:
otherEntity  the entity to check collision with

Reimplemented from Bomb.

void ThrownBomb::draw const Point   anchor [virtual]
 

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

Parameters:
anchor  the bomb's anchor point

Reimplemented from Bomb.

bool ThrownBomb::update float    dt [virtual]
 

Update the bomb's logic.

Parameters:
dt  the amount of time since the last frame
Returns:
true if this bomb has blown up

Reimplemented from Bomb.


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