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

c:/home/kevn/src/animaniac/ani/Dynamics/operators/Emitter.h

Go to the documentation of this file.
00001 #ifndef EMITTER_OPERATOR
00002 #define EMITTER_OPERATOR
00003 
00004 #include "gmtl/Math.h"
00005 #include "ani/Dynamics/Operator.h"
00006 #include "ani/Dynamics/DynamicSystem.h"
00007 
00008 namespace ani
00009 {
00010    template<class __EntityType>
00011    class Emitter : public ani::Operator<__EntityType>
00012    {
00013    public:
00014       Emitter() : mAgeOfDeath( 2 ), mRate( 0.1 ) {}
00015       virtual ~Emitter() {}
00016       void setEmissionRate( const float& rate ) { mRate = rate; }      
00017       void setAgeOfDeath( float aod )
00018       {
00019          mAgeOfDeath = aod;
00020       }
00021 
00022       float mAgeOfDeath;
00023       float mRate;
00024    };
00025 } // end namespace
00026 
00027 #endif

Generated on Wed Jun 12 01:54:01 2002 for Animaniac by doxygen1.2.15