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