1 #ifndef FleeComponent_HPP
2 #define FleeComponent_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_weightFlee = weight; };
50 void fleeOn(){m_iFlags |= steer::behaviorType::flee;};
52 bool isFleeOn(){
return on(steer::behaviorType::flee);};
53 void fleeOff(){
if(
on(steer::behaviorType::flee)) m_iFlags ^=steer::behaviorType::flee;}
58 void Update(
float dt);
67 #endif // FleeComponent_HPP