Emergency 20 Dokumentation  4.2.0
qsf::ai::AchieveLineOfSightGoal Class Reference

#include <AchieveLineOfSightGoal.h>

Inheritance diagram for qsf::ai::AchieveLineOfSightGoal:
qsf::ai::NavigationGoal

Public Member Functions

 AchieveLineOfSightGoal (const Entity &caller, const Entity &target, uint32 targetPoint, short traceLineCollisionFlags)
 
virtual process::State evaluateState (const Entity &entity) override
 
virtual bool checkForChangedGoalSituation (const Entity &entity) override
 
virtual bool isTargetMovingCloser () const override
 
virtual UnsignedFloat estimateDistanceToTarget (const glm::vec3 &fromPos) const override
 
virtual std::auto_ptr< NavigationGoalclone () const override
 
- Public Member Functions inherited from qsf::ai::NavigationGoal
 NavigationGoal (Type type, bool dynamicTarget)
 
virtual ~NavigationGoal ()
 
Type getType () const
 
process::State getState () const
 
bool isTargetDynamic () const
 
process::State evaluateStateWhileRunning (const Entity &entity)
 
bool doesRemainingDistanceIndicateGoalState () const
 
const GoalConfigurationListgetGoalConfigurations () const
 
void serialize (BinarySerializer &serializer)
 
virtual void tweakWaypointSolutionList (const DynamicPortal &startSupportingPortal, std::deque< Waypoint > &waypoints, const DynamicPortal &endSupportingPortal) const
 
virtual bool shouldCheckTargetPositionForLocalRouter () const
 

Protected Member Functions

virtual void serializeSpecificData (BinarySerializer &serializer) override
 

Friends

class NavigationGoalFactory
 

Additional Inherited Members

- Public Types inherited from qsf::ai::NavigationGoal
enum  Type {
  ARRIVE_AT_STATIC_POSITION, ARRIVE_AT_ONE_OF_SEVERAL_STATIC_POSITIONS, ARRIVE_AT_OBJECT_TARGET_POINT, ACHIEVE_LINE_OF_SIGHT,
  AVOID_LINE_OF_SIGHT, AVOID_THREATS
}
 
typedef std::vector< NavigationTargetPointGoalConfigurationList
 
- Static Protected Member Functions inherited from qsf::ai::NavigationGoal
static UnsignedFloat calculateClosestDistanceTo (const glm::vec3 &point, const GoalConfigurationList &goals, bool subtractTolerance=false)
 
static void calculateGoalConfigurationsFromTargetPoint (const Entity &caller, const Transform &callerTransform, const Entity &target, const Transform &targetTransform, uint32 targetPointId, GoalConfigurationList &goals)
 
static const glm::vec3 & getPositionFromEntity (const Entity &entity)
 
- Protected Attributes inherited from qsf::ai::NavigationGoal
process::State mState
 
bool mDynamicTarget
 
GoalConfigurationList mGoalConfigurations
 

Detailed Description

Navigation goal to achieve a line of sight towards a given entity and a target point. The range data is read from the target point.

Constructor & Destructor Documentation

qsf::ai::AchieveLineOfSightGoal::AchieveLineOfSightGoal ( const Entity caller,
const Entity target,
uint32  targetPoint,
short  traceLineCollisionFlags 
)

Member Function Documentation

virtual bool qsf::ai::AchieveLineOfSightGoal::checkForChangedGoalSituation ( const Entity entity)
overridevirtual
virtual std::auto_ptr<NavigationGoal> qsf::ai::AchieveLineOfSightGoal::clone ( ) const
overridevirtual
virtual UnsignedFloat qsf::ai::AchieveLineOfSightGoal::estimateDistanceToTarget ( const glm::vec3 &  fromPos) const
overridevirtual
virtual process::State qsf::ai::AchieveLineOfSightGoal::evaluateState ( const Entity entity)
overridevirtual
virtual bool qsf::ai::AchieveLineOfSightGoal::isTargetMovingCloser ( ) const
overridevirtual
virtual void qsf::ai::AchieveLineOfSightGoal::serializeSpecificData ( BinarySerializer serializer)
overrideprotectedvirtual

Friends And Related Function Documentation

friend class NavigationGoalFactory
friend

The documentation for this class was generated from the following file: