1 #ifndef HideComponent_HPP
2 #define HideComponent_HPP
4 #include <steeriously/Agent.hpp>
5 #include <steeriously/BehaviorData.hpp>
6 #include <steeriously/BehaviorHelpers.hpp>
7 #include <steeriously/Vector2.hpp>
29 void setWeight(
const float weight) { m_weightHide = weight; };
50 void setObstacles(std::vector<SphereObstacle*>* o) { m_obstacles = o; };
51 std::vector<SphereObstacle*>* getObstacles() {
return m_obstacles; };
56 void HideOn(){m_iFlags |= steer::behaviorType::hide;};
58 bool isHideOn(){
return on(steer::behaviorType::hide);};
59 void HideOff(){
if(
on(steer::behaviorType::hide)) m_iFlags ^=steer::behaviorType::hide;}
61 void setTargetAgent(
steer::Agent* a){m_targetAgent = a;};
62 steer::Agent* getTargetAgent()
const {
return m_targetAgent;};
67 void Update(
float dt);
74 std::vector<SphereObstacle*>* m_obstacles;
79 #endif // SeekComponent_HPP