1 #ifndef InterposeComponent_HPP
2 #define InterposeComponent_HPP
4 #include <steeriously/Agent.hpp>
5 #include <steeriously/BehaviorData.hpp>
6 #include <steeriously/BehaviorHelpers.hpp>
7 #include <steeriously/Vector2.hpp>
26 void setWeight(
const float weight) { m_weightInterpose = weight; };
32 float getWeight()
const {
return m_weightInterpose; };
49 void InterposeOn(){m_iFlags |= steer::behaviorType::interpose;};
51 bool isInterposeOn(){
return on(steer::behaviorType::interpose);};
52 void InterposeOff(){
if(
on(steer::behaviorType::interpose)) m_iFlags ^=steer::behaviorType::interpose;}
64 void Update(
float dt);
67 float m_weightInterpose;
76 #endif // InterposeComponent_HPP