Rebornbuddy
Loading...
Searching...
No Matches
ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T > Class Template Reference
Inheritance diagram for ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >:
ff14bot.Pathing.Avoidance.AvoidInfo< T > ff14bot.Pathing.Avoidance.AvoidInfo

Public Member Functions

 AvoidPolygonInfo (Func< bool > condition, Func< T, Vector3 > locationProducer, Func< T, float > rotationProducer, Func< T, float > scaleProducer, Func< T, float > heightProducer, Func< T, Vector2[]> pointsProducer, Func< IEnumerable< T > > collectionProducer, Func< Vector3 > leashPointProducer, float leashRadius=40, bool ignoreIfBlocking=false, Func< T, bool > objectValidator=null, AvoidancePriority priority=AvoidancePriority.Medium)
 Initializes a new instance of the AvoidPolygonInfo<T> class.

Properties

Func< T, float > HeightProducer [get, protected set]
Func< T, float > RotationProducer [get]
Func< T, float > ScaleProducer [get]
Func< T, Vector2[]> PointsProducer [get]
Properties inherited from ff14bot.Pathing.Avoidance.AvoidInfo< T >
new Func< bool > Condition [get]
 Gets the condition.
new Func< T, Vector3 > LocationProducer [get]
new Func< Vector3 > LeashPointProducer [get]
 Gets the leash point selector.
new Func< T, bool > ObjectValidator [get]
Func< IEnumerable< T > > CollectionProducer [get]
Properties inherited from ff14bot.Pathing.Avoidance.AvoidInfo
Func< bool > Condition [get]
 Gets the condition.
Func< object, Vector3 > LocationProducer [get]
Func< Vector3 > LeashPointProducer [get]
 Gets the leash point selector.
float LeashRadius [get]
 Gets the leash radius.
bool IgnoreIfBlocking [get]
 Gets a value indicating whether to ignore avoid if no avoid path is found.
Func< object, bool > ObjectValidator [get]
List< object > Collection [get]
AvoidancePriority Priority [get]
bool CanRun [get]
 Determines whether this instance can run.

Additional Inherited Members

Protected Member Functions inherited from ff14bot.Pathing.Avoidance.AvoidInfo< T >
 AvoidInfo (Func< bool > condition, Func< T, Vector3 > locationProducer, Func< IEnumerable< T > > collectionProducer, Func< Vector3 > leashPointProducer, float leashRadius=40, bool ignoreIfBlocking=false, Func< T, bool > objectValidator=null, AvoidancePriority priority=AvoidancePriority.Medium)
 Initializes a new instance of the AvoidInfo class.
Protected Member Functions inherited from ff14bot.Pathing.Avoidance.AvoidInfo
 AvoidInfo (Func< bool > condition, Func< object, Vector3 > locationProducer, Func< IEnumerable< object > > collectionProducer, Func< Vector3 > leashPointProducer, float leashRadius=40, bool ignoreIfBlocking=false, Func< object, bool > objectValidator=null, AvoidancePriority priority=AvoidancePriority.Medium)
 Initializes a new instance of the AvoidInfo class.

Member Function Documentation

◆ AvoidPolygonInfo()

ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >.AvoidPolygonInfo ( Func< bool > condition,
Func< T, Vector3 > locationProducer,
Func< T, float > rotationProducer,
Func< T, float > scaleProducer,
Func< T, float > heightProducer,
Func< T, Vector2[]> pointsProducer,
Func< IEnumerable< T > > collectionProducer,
Func< Vector3 > leashPointProducer,
float leashRadius = 40,
bool ignoreIfBlocking = false,
Func< T, bool > objectValidator = null,
AvoidancePriority priority = AvoidancePriority::Medium )

Initializes a new instance of the AvoidPolygonInfo<T> class.

Parameters
conditionThe condition.
locationProducerProduces the location. Polygon is rotated and scaled around produced location on the xy plane.
rotationProducerProduces the polygon's rotation in radians.
scaleProducerProduces the polygon's scale
heightProducerProduces the height of the polygon. Half of the produced height extends above location produced by locationProducer and the other half below
pointsProducerProduces the points that form the polygon
collectionProducerProduces a collection of objects that should be avoided.
leashPointProducerThe leash point producer. Can be null. Used in conjunction with leashRadius
leashRadiusThe leash radius. If leashPointProducer is not null, bot will not navigate furthar than this distance from point returned from leashPointProducer while running out of avoid
ignoreIfBlockingIgnore avoid if set to true and it can't be navigated around.
objectValidatorIndecates whether objects produced by collectionProducer are valid
priorityThe priority.

Property Documentation

◆ HeightProducer

Func<T, float> ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >.HeightProducer
getprotected set

◆ PointsProducer

Func<T, Vector2[]> ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >.PointsProducer
get

◆ RotationProducer

Func<T, float> ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >.RotationProducer
get

◆ ScaleProducer

Func<T, float> ff14bot.Pathing.Avoidance.AvoidPolygonInfo< T >.ScaleProducer
get