1 #ifndef EvadeComponent_HPP
2 #define EvadeComponent_HPP
4 #include <steeriously/Agent.hpp>
5 #include <steeriously/BehaviorData.hpp>
6 #include <steeriously/BehaviorHelpers.hpp>
7 #include <steeriously/Vector2.hpp>
27 void setWeight(
const float weight) { m_weightEvade = weight; };
50 void evadeOn(){m_iFlags |= steer::behaviorType::evade;};
52 bool isEvadeOn(){
return on(steer::behaviorType::evade);};
53 void evadeOff(){
if(
on(steer::behaviorType::evade)) m_iFlags ^=steer::behaviorType::evade;}
55 void setTargetAgent(
steer::Agent* a){m_targetAgent = a;};
56 steer::Agent* getTargetAgent()
const {
return m_targetAgent;};
61 void Update(
float dt);
71 #endif // EvadeComponent_HPP