1 #ifndef PursuitComponent_HPP
2 #define PursuitComponent_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_weightPursuit = weight; };
49 void pursuitOn(){m_iFlags |= steer::behaviorType::pursuit;};
51 bool isPursuitOn(){
return on(steer::behaviorType::pursuit);};
52 void pursuitOff(){
if(
on(steer::behaviorType::pursuit)) m_iFlags ^=steer::behaviorType::pursuit;};
54 void setTargetAgent(
steer::Agent* a){m_targetAgent = a;};
55 steer::Agent* getTargetAgent()
const {
return m_targetAgent;};
57 bool targetAcquired();
62 void Update(
float dt);
65 float m_weightPursuit;
72 #endif // PursuitComponent_HPP