Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

ParticleSystems::StrikeParticle Class Reference

The PointParticle Class. More...

#include <StrikeParticle.h>

Inheritance diagram for ParticleSystems::StrikeParticle:

ParticleSystems::Particle List of all members.

Public Member Functions

 StrikeParticle (int sysId, Solver *sol)
 The minimal Constructor.
 StrikeParticle (int sysId, Solver *sol, GraphicsLib::Point3 pos, GraphicsLib::Vector vel, GraphicsLib::Colour c, GraphicsLib::Colour fc, GLfloat size, GLfloat fs, GLfloat maxLife)
 The main Constructor.
virtual ~StrikeParticle ()
 The Destructor.
virtual void draw (void)
 A virtual Function.
virtual void update (void)
 A virtual Function.
virtual bool isDead (void)
 A virtual Function.

Detailed Description

The PointParticle Class.

The PointParticle Class is a Subclass of the Particle Class. It extends the Particle Class in order to be able to draw a Strike (Line) as a Particle.

See also:
Particle
Author:
Hannes Ricklefs

Definition at line 27 of file StrikeParticle.h.


Constructor & Destructor Documentation

StrikeParticle::StrikeParticle int  sysId,
Solver sol
 

The minimal Constructor.

This Constructor only takes the ParticleSystem ID and the Solver.

Parameters:
sysId the ParticleSystem ID this PointParticle belongs to
sol a pointer to the Solver

Definition at line 12 of file StrikeParticle.cpp.

StrikeParticle::StrikeParticle int  sysId,
Solver sol,
GraphicsLib::Point3  pos,
GraphicsLib::Vector  vel,
GraphicsLib::Colour  c,
GraphicsLib::Colour  fc,
GLfloat  size,
GLfloat  fs,
GLfloat  maxLife
 

The main Constructor.

This Constructor is the main Constructor for a PointParticle. It sets the most important attributes of a PointParticle.

Parameters:
sysId the ParticleSystem ID this Particle belongs to
sol a pointer to the Solver
pos the initial Position
vel the inital Velocity
c the initial Colour
fc the fade Colour
size the inital Size
fsize the fade Size
maxLife the maximum Lifespan of the Particle

Definition at line 16 of file StrikeParticle.cpp.

StrikeParticle::~StrikeParticle  )  [virtual]
 

The Destructor.

Destructs the PointParticle

Definition at line 68 of file StrikeParticle.cpp.


Member Function Documentation

void StrikeParticle::draw void   )  [virtual]
 

A virtual Function.

Draws the PointParticle

Implements ParticleSystems::Particle.

Definition at line 29 of file StrikeParticle.cpp.

bool StrikeParticle::isDead void   )  [virtual]
 

A virtual Function.

Returns true if the PointParticle is dead

Returns:
the value if the PointParticle is dead

Implements ParticleSystems::Particle.

Definition at line 63 of file StrikeParticle.cpp.

void StrikeParticle::update void   )  [virtual]
 

A virtual Function.

Updates the PointParticles attributes

Implements ParticleSystems::Particle.

Definition at line 42 of file StrikeParticle.cpp.

References ParticleSystems::Solver::nextStep().


The documentation for this class was generated from the following files:
Generated on Thu Mar 24 11:05:03 2005 for ParticleSystem by  doxygen 1.4.1