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

Effect Class Reference

An Effect is an object in the game that is drawn, but does not "have a solid existance" like an Entity does -- meaning it is not checked for collisions and therefore is not an essential part of the gameplay logic. More...

#include <Effect.h>

Inheritance diagram for Effect:

Drawable Particle List of all members.

Public Methods

 Effect ()
 Constructor.

virtual ~Effect ()
 Destructor.

virtual bool update (float dt)=0
 Update the logic for the effect.

virtual void draw (const Point &anchor)=0
 Draw this Effect on the screen, given the anchor point on the screen, which is defined as the center of the Effect's contact with the ground.

virtual const RectgetPosition () const=0
 Get the current position on the map.


Detailed Description

An Effect is an object in the game that is drawn, but does not "have a solid existance" like an Entity does -- meaning it is not checked for collisions and therefore is not an essential part of the gameplay logic.

Effects are updated, drawn, and can die.


Constructor & Destructor Documentation

Effect::Effect  
 

Constructor.

Authors: Jim Clase, Jonathan Hilliker, Jason Winnebeck

Effect::~Effect   [virtual]
 

Destructor.


Member Function Documentation

virtual void Effect::draw const Point   anchor [pure virtual]
 

Draw this Effect on the screen, given the anchor point on the screen, which is defined as the center of the Effect's contact with the ground.

Implements Drawable.

Implemented in Particle.

virtual const Rect& Effect::getPosition   [pure virtual]
 

Get the current position on the map.

Returns:
the current position on the map

Implements Drawable.

Implemented in Particle.

virtual bool Effect::update float    dt [pure virtual]
 

Update the logic for the effect.

Parameters:
dt  the amount of time since the last frame
Returns:
true if this Effect should be removed from the game

Implemented in Particle.


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