1 #ifndef SeekComponent_HPP
2 #define SeekComponent_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_weightSeek = weight; };
49 void seekOn(){m_iFlags |= steer::behaviorType::seek;};
51 bool isSeekOn(){
return on(steer::behaviorType::seek);};
52 void seekOff(){
if(
on(steer::behaviorType::seek)) m_iFlags ^=steer::behaviorType::seek;}
54 bool targetAcquired();
59 void Update(
float dt);
68 #endif // SeekComponent_HPP