Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

BaseParticle Class Reference

#include <baseParticle.h>

Inheritance diagram for BaseParticle:

PhysicsObject TypedReferenceCount TypedObject ReferenceCount OrientedParticle PointParticle ZSpinParticle List of all members.

Public Member Functions

INLINE void set_age (float age)
INLINE void set_lifespan (float lifespan)
INLINE void set_alive (bool alive)
INLINE float get_age (void) const
INLINE float get_lifespan (void) const
INLINE bool get_alive (void) const
INLINE float get_parameterized_age (void) const
INLINE float get_parameterized_vel (void) const
virtual void init (void)=0
virtual void die (void)=0
virtual void update (void)=0
virtual float get_theta (void) const
virtual PhysicsObjectmake_copy (void) const=0

Protected Member Functions

 BaseParticle (int lifespan=1, bool alive=false)
 BaseParticle (const BaseParticle &copy)
virtual ~BaseParticle (void)

Private Attributes

float _age
float _lifespan
bool _alive
LPoint3f _last_position

Constructor & Destructor Documentation

BaseParticle::BaseParticle int  lifespan = 1,
bool  alive = false
[protected]
 

Definition at line 27 of file baseParticle.cxx.

BaseParticle::BaseParticle const BaseParticle &  copy  )  [protected]
 

Definition at line 37 of file baseParticle.cxx.

References _age, _alive, and _lifespan.

BaseParticle::~BaseParticle void   )  [protected, virtual]
 

Definition at line 49 of file baseParticle.cxx.


Member Function Documentation

virtual void BaseParticle::die void   )  [pure virtual]
 

Implemented in OrientedParticle, PointParticle, and ZSpinParticle.

Referenced by ParticleSystem::kill_particle().

INLINE float BaseParticle::get_age void   )  const
 

Referenced by ZSpinParticle::update(), and ParticleSystem::update().

INLINE bool BaseParticle::get_alive void   )  const
 

Referenced by SpriteParticleRenderer::render(), SparkleParticleRenderer::render(), PointParticleRenderer::render(), LineParticleRenderer::render(), GeomParticleRenderer::render(), ParticleSystem::resize_pool(), and ParticleSystem::update().

INLINE float BaseParticle::get_lifespan void   )  const
 

Referenced by ParticleSystem::update().

INLINE float BaseParticle::get_parameterized_age void   )  const
 

Referenced by SpriteParticleRenderer::render(), SparkleParticleRenderer::render(), LineParticleRenderer::render(), GeomParticleRenderer::render(), and ZSpinParticle::update().

INLINE float BaseParticle::get_parameterized_vel void   )  const
 

float BaseParticle::get_theta void   )  const [virtual]
 

Reimplemented in ZSpinParticle.

Definition at line 58 of file baseParticle.cxx.

Referenced by SpriteParticleRenderer::render().

virtual void BaseParticle::init void   )  [pure virtual]
 

Implemented in OrientedParticle, PointParticle, and ZSpinParticle.

Referenced by ParticleSystem::birth_particle().

virtual PhysicsObject* BaseParticle::make_copy void   )  const [pure virtual]
 

Reimplemented from PhysicsObject.

Implemented in OrientedParticle, PointParticle, and ZSpinParticle.

INLINE void BaseParticle::set_age float  age  ) 
 

Referenced by BaseParticleFactory::populate_particle(), and ParticleSystem::update().

INLINE void BaseParticle::set_alive bool  alive  ) 
 

Referenced by ParticleSystem::birth_particle(), ParticleSystem::kill_particle(), and BaseParticleFactory::populate_particle().

INLINE void BaseParticle::set_lifespan float  lifespan  ) 
 

Referenced by BaseParticleFactory::populate_particle().

virtual void BaseParticle::update void   )  [pure virtual]
 

Implemented in OrientedParticle, PointParticle, and ZSpinParticle.

Referenced by ParticleSystem::update().


Member Data Documentation

float BaseParticle::_age [private]
 

Definition at line 33 of file baseParticle.h.

Referenced by BaseParticle().

bool BaseParticle::_alive [private]
 

Definition at line 35 of file baseParticle.h.

Referenced by BaseParticle().

LPoint3f BaseParticle::_last_position [private]
 

Reimplemented from PhysicsObject.

Definition at line 37 of file baseParticle.h.

float BaseParticle::_lifespan [private]
 

Definition at line 34 of file baseParticle.h.

Referenced by BaseParticle().


The documentation for this class was generated from the following files:
Generated on Fri Apr 18 00:11:21 2003 for Panda by doxygen1.3