1 #ifndef ArriveComponent_HPP
2 #define ArriveComponent_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_weightArrive = weight; };
50 void arriveOn(){m_iFlags |= steer::behaviorType::arrive;};
52 bool isArriveOn(){
return on(steer::behaviorType::arrive);};
53 void arriveOff(){
if(
on(steer::behaviorType::arrive)) m_iFlags ^=steer::behaviorType::arrive;}
55 bool targetAcquired();
60 void Update(
float dt);
69 #endif // ArriveComponent_HPP