00001 #ifndef BINARY_FORCE_OPERATOR 00002 #define BINARY_FORCE_OPERATOR 00003 00004 #include <boost/smart_ptr.hpp> 00005 #include <gmtl/Vec.h> 00006 #include "ani/Dynamics/Operator.h" 00007 #include "ani/Dynamics/DynamicSystem.h" 00008 00009 namespace ani 00010 { 00014 template<class __EntityType> 00015 class BinaryForceOperator : public ani::Operator<__EntityType> 00016 { 00017 public: 00018 BinaryForceOperator(){} 00019 virtual ~BinaryForceOperator(){} 00020 00021 //: apply this force function to the particle 00022 virtual void exec( DynamicSystem<__EntityType>& ps, float timeDelta ) = 0; 00023 }; 00024 } // end of namespace 00025 00026 #endif