#include <Particle.h>
Inheritance diagram for Particle:
Public Methods | |
Particle (const Point3D &initPos, const Vector3D &initVect, float life) | |
Constructor. | |
virtual | ~Particle () |
Destructor. | |
void | setColor (DWORD color) |
Sets the color for this Particle. | |
void | setSize (float size) |
Sets the size of this particle. | |
void | setBounceFactor (float fact) |
Sets the bounce factor, a number (sane values from 0.0 to 1.0, legal values are >= 0.0) of how much force is rebounded back to the Particle when it bounces. | |
virtual bool | update (float dt) |
Update the logic for the effect. | |
virtual void | draw (const Point &anchor) |
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 float | getHeight () const |
Returns the height of the object. | |
virtual bool | needsTransform () const |
A method that returns true if the Drawable will be drawing pre-transformed (XYZRHW) and pre-lit vertices, and its anchor needs transforming due to viewport changes. | |
virtual const Rect & | getPosition () const |
Get the current position on the map. | |
Static Public Methods | |
void | initTextures (GraphicsDevice dev) |
Initializes all textures used for the Particle class. | |
void | releaseTextures () |
Uninitalizes the work done by initTextures. |
|
Constructor.
|
|
Destructor.
|
|
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 Effect. |
|
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. |
|
Get the current position on the map.
Implements Effect. |
|
Initializes all textures used for the Particle class. Throws an IsoException if initialization fails. |
|
A method that returns true if the Drawable will be drawing pre-transformed (XYZRHW) and pre-lit vertices, and its anchor needs transforming due to viewport changes.
Reimplemented from Drawable. |
|
Uninitalizes the work done by initTextures. If initTextures threw an exception, releaseTextures need not be called. |
|
Sets the bounce factor, a number (sane values from 0.0 to 1.0, legal values are >= 0.0) of how much force is rebounded back to the Particle when it bounces.
|
|
Sets the color for this Particle.
|
|
Sets the size of this particle. The size should be a whole number. |
|
Update the logic for the effect.
Implements Effect. |