1 #ifndef PathFollowingComponent_HPP
2 #define PathFollowingComponent_HPP
4 #include <steeriously/Agent.hpp>
5 #include <steeriously/BehaviorData.hpp>
6 #include <steeriously/BehaviorHelpers.hpp>
7 #include <steeriously/Path.hpp>
8 #include <steeriously/Vector2.hpp>
28 void setWeight(
const float weight) { m_weightPathFollowing = weight; };
34 float getWeight()
const {
return m_weightPathFollowing; };
54 void pathFollowingOn(){m_iFlags |= steer::behaviorType::followPath;};
56 bool isPathFollowingOn(){
return on(steer::behaviorType::followPath);};
57 void pathFollowingOff(){
if(
on(steer::behaviorType::followPath)) m_iFlags ^=steer::behaviorType::followPath;}
59 bool targetAcquired();
64 void Update(
float dt);
67 float m_weightPathFollowing;
75 #endif // PathFollowingComponent_HPP