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

HomingBomb Class Reference

A bomb that follows a specified target and explodes upon contact. More...

#include <HomingBomb.h>

Inheritance diagram for HomingBomb:

Bomb Entity Drawable List of all members.

Public Methods

 HomingBomb ()
 Default constructor.

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

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


Detailed Description

A bomb that follows a specified target and explodes upon contact.


Constructor & Destructor Documentation

HomingBomb::HomingBomb  
 

Default constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

HomingBomb::HomingBomb const Rect   initPos,
int    initDir,
int    size,
float    delay,
float    initSpeed,
const Character   c
 

Constructor.

Parameters:
initPos  the initial position on the map
initDir  the initial direction
size  the size of the bomb's explosion
delay  the amount of time before the bomb detonates
initSpeed  the speed at which the bomb moves
c  the character to target

HomingBomb::~HomingBomb   [virtual]
 

Destructor.


Member Function Documentation

void HomingBomb::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 HomingBomb::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