1 #ifndef OffsetPursuitComponent_HPP
2 #define OffsetPursuitComponent_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_weightOffsetPursuit = weight; };
32 float getWeight()
const {
return m_weightOffsetPursuit; };
49 void OffsetPursuitOn(){m_iFlags |= steer::behaviorType::offsetPursuit;};
51 bool isOffsetPursuitOn(){
return on(steer::behaviorType::offsetPursuit);};
52 void offsetPursuitOff(){
if(
on(steer::behaviorType::offsetPursuit)) m_iFlags ^=steer::behaviorType::offsetPursuit;}
61 void Update(
float dt);
64 float m_weightOffsetPursuit;
72 #endif // OffsetPursuitComponent_HPP