Table of Contents

Class FormationAI

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public class FormationAI
Inheritance
FormationAI
Inherited Members

Constructors

FormationAI(Formation)

public FormationAI(Formation formation)

Parameters

formation Formation

Properties

ActiveBehavior

public BehaviorComponent ActiveBehavior { get; }

Property Value

BehaviorComponent

IsMainFormation

public bool IsMainFormation { get; set; }

Property Value

bool

Side

public FormationAI.BehaviorSide Side { get; set; }

Property Value

FormationAI.BehaviorSide

Methods

AddAiBehavior(BehaviorComponent)

public void AddAiBehavior(BehaviorComponent behaviorComponent)

Parameters

behaviorComponent BehaviorComponent

AddSpecialBehavior(BehaviorComponent, bool)

public void AddSpecialBehavior(BehaviorComponent behavior, bool purgePreviousSpecialBehaviors = false)

Parameters

behavior BehaviorComponent
purgePreviousSpecialBehaviors bool

DebugMore()

[Conditional("DEBUG")]
public void DebugMore()

DebugScores()

[Conditional("DEBUG")]
public void DebugScores()

GetBehavior<T>()

public T GetBehavior<T>() where T : BehaviorComponent

Returns

T

Type Parameters

T

OnAgentRemoved(Agent)

public void OnAgentRemoved(Agent agent)

Parameters

agent Agent

OnDeploymentFinished()

public void OnDeploymentFinished()

ResetBehaviorWeights()

public void ResetBehaviorWeights()

SetBehaviorWeight<T>(float)

public T SetBehaviorWeight<T>(float w) where T : BehaviorComponent

Parameters

w float

Returns

T

Type Parameters

T

Tick()

public void Tick()

Events

OnActiveBehaviorChanged

public event Action<Formation> OnActiveBehaviorChanged

Event Type

Action<Formation>

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