1 #ifndef WANDERCOMPONENT_HPP
2 #define WANDERCOMPONENT_HPP
4 #include <steeriously/Agent.hpp>
5 #include <steeriously/BehaviorData.hpp>
6 #include <steeriously/BehaviorHelpers.hpp>
20 void Update(
float dt);
27 void setWeight(
const float weight) { m_weightWander = weight; };
50 void wanderOn() { m_iFlags |= steer::behaviorType::wander; };
51 void wanderOff() {
if (
on(steer::behaviorType::wander)) m_iFlags ^= steer::behaviorType::wander; };
52 bool isWanderOn() {
return on(steer::behaviorType::wander); };
64 #endif //WANDERCOMPONENT_HPP