Table of Contents

Class BehaviorComponent

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public abstract class BehaviorComponent
Inheritance
BehaviorComponent
Derived
Inherited Members

Constructors

BehaviorComponent()

protected BehaviorComponent()

BehaviorComponent(Formation)

protected BehaviorComponent(Formation formation)

Parameters

formation Formation

Fields

CurrentFacingOrder

protected FacingOrder CurrentFacingOrder

Field Value

FacingOrder

FormArrangementDistanceToOrderPosition

protected const float FormArrangementDistanceToOrderPosition = 10

Field Value

float

IsCurrentOrderChanged

public bool IsCurrentOrderChanged

Field Value

bool

_behaviorSide

protected FormationAI.BehaviorSide _behaviorSide

Field Value

FormationAI.BehaviorSide

_lastPlayerInformTime

protected float _lastPlayerInformTime

Field Value

float

Properties

BehaviorCoherence

public float BehaviorCoherence { get; set; }

Property Value

float

CurrentOrder

public MovementOrder CurrentOrder { get; protected set; }

Property Value

MovementOrder

Formation

public Formation Formation { get; }

Property Value

Formation

NavmeshlessTargetPositionPenalty

public virtual float NavmeshlessTargetPositionPenalty { get; set; }

Property Value

float

PreserveExpireTime

public float PreserveExpireTime { get; set; }

Property Value

float

WeightFactor

public float WeightFactor { get; set; }

Property Value

float

Methods

CalculateCurrentOrder()

protected virtual void CalculateCurrentOrder()

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetAIWeight()

public float GetAIWeight()

Returns

float

GetAiWeight()

protected abstract float GetAiWeight()

Returns

float

GetBehaviorString()

public virtual TextObject GetBehaviorString()

Returns

TextObject

GetHashCode()

public override int GetHashCode()

Returns

int

OnAgentRemoved(Agent)

public virtual void OnAgentRemoved(Agent agent)

Parameters

agent Agent

OnBehaviorActivatedAux()

protected virtual void OnBehaviorActivatedAux()

OnBehaviorCanceled()

public virtual void OnBehaviorCanceled()

OnDeploymentFinished()

public virtual void OnDeploymentFinished()

OnValidBehaviorSideChanged()

public virtual void OnValidBehaviorSideChanged()

PrecalculateMovementOrder()

public void PrecalculateMovementOrder()

RemindSergeantPlayer()

public void RemindSergeantPlayer()

ResetBehavior()

public virtual void ResetBehavior()

TickOccasionally()

public virtual void TickOccasionally()

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).