Table of Contents

Struct MovementOrder

Namespace
TaleWorlds.MountAndBlade
Assembly
TaleWorlds.MountAndBlade.dll
public struct MovementOrder
Inherited Members
Extension Methods

Fields

MovementOrderAdvance

public static readonly MovementOrder MovementOrderAdvance

Field Value

MovementOrder

MovementOrderCharge

public static readonly MovementOrder MovementOrderCharge

Field Value

MovementOrder

MovementOrderFallBack

public static readonly MovementOrder MovementOrderFallBack

Field Value

MovementOrder

MovementOrderNull

public static readonly MovementOrder MovementOrderNull

Field Value

MovementOrder

MovementOrderRetreat

public static readonly MovementOrder MovementOrderRetreat

Field Value

MovementOrder

MovementOrderStop

public static readonly MovementOrder MovementOrderStop

Field Value

MovementOrder

OrderEnum

public readonly MovementOrder.MovementOrderEnum OrderEnum

Field Value

MovementOrder.MovementOrderEnum

TargetEntity

public GameEntity TargetEntity

Field Value

GameEntity

_isFacingDirection

public readonly bool _isFacingDirection

Field Value

bool

Properties

MovementState

public MovementOrder.MovementStateEnum MovementState { get; }

Property Value

MovementOrder.MovementStateEnum

OrderType

public OrderType OrderType { get; }

Property Value

OrderType

TargetFormation

public Formation TargetFormation { get; }

Property Value

Formation

_targetAgent

public Agent _targetAgent { get; }

Property Value

Agent

Methods

Advance(Formation, float)

public void Advance(Formation formation, float distance)

Parameters

formation Formation
distance float

AreOrdersPracticallySame(MovementOrder, MovementOrder, bool)

public bool AreOrdersPracticallySame(MovementOrder m1, MovementOrder m2, bool isAIControlled)

Parameters

m1 MovementOrder
m2 MovementOrder
isAIControlled bool

Returns

bool

CreateNewOrderWorldPosition(Formation, WorldPositionEnforcedCache)

public WorldPosition CreateNewOrderWorldPosition(Formation f, WorldPosition.WorldPositionEnforcedCache worldPositionEnforcedCache)

Parameters

f Formation
worldPositionEnforcedCache WorldPosition.WorldPositionEnforcedCache

Returns

WorldPosition

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

FallBack(Formation, float)

public void FallBack(Formation formation, float distance)

Parameters

formation Formation
distance float

GetHashCode()

public override int GetHashCode()

Returns

int

GetMovementOrderDefensiveness(MovementOrderEnum)

public static int GetMovementOrderDefensiveness(MovementOrder.MovementOrderEnum orderEnum)

Parameters

orderEnum MovementOrder.MovementOrderEnum

Returns

int

GetMovementOrderDefensivenessChange(MovementOrderEnum, MovementOrderEnum)

public static int GetMovementOrderDefensivenessChange(MovementOrder.MovementOrderEnum previousOrderEnum, MovementOrder.MovementOrderEnum nextOrderEnum)

Parameters

previousOrderEnum MovementOrder.MovementOrderEnum
nextOrderEnum MovementOrder.MovementOrderEnum

Returns

int

GetPosition(Formation)

public Vec2 GetPosition(Formation f)

Parameters

f Formation

Returns

Vec2

GetSubstituteOrder(Formation)

public MovementOrder GetSubstituteOrder(Formation formation)

Parameters

formation Formation

Returns

MovementOrder

GetTargetVelocity()

public Vec2 GetTargetVelocity()

Returns

Vec2

IsApplicable(Formation)

public bool IsApplicable(Formation formation)

Parameters

formation Formation

Returns

bool

MovementOrderAttackEntity(GameEntity, bool)

public static MovementOrder MovementOrderAttackEntity(GameEntity targetEntity, bool surroundEntity)

Parameters

targetEntity GameEntity
surroundEntity bool

Returns

MovementOrder

MovementOrderChargeToTarget(Formation)

public static MovementOrder MovementOrderChargeToTarget(Formation targetFormation)

Parameters

targetFormation Formation

Returns

MovementOrder

MovementOrderFollow(Agent)

public static MovementOrder MovementOrderFollow(Agent targetAgent)

Parameters

targetAgent Agent

Returns

MovementOrder

MovementOrderFollowEntity(GameEntity)

public static MovementOrder MovementOrderFollowEntity(GameEntity targetEntity)

Parameters

targetEntity GameEntity

Returns

MovementOrder

MovementOrderGuard(Agent)

public static MovementOrder MovementOrderGuard(Agent targetAgent)

Parameters

targetAgent Agent

Returns

MovementOrder

MovementOrderMove(WorldPosition)

public static MovementOrder MovementOrderMove(WorldPosition position)

Parameters

position WorldPosition

Returns

MovementOrder

OnApply(Formation)

public void OnApply(Formation formation)

Parameters

formation Formation

OnArrangementChanged(Formation)

public void OnArrangementChanged(Formation formation)

Parameters

formation Formation

OnCancel(Formation)

public void OnCancel(Formation formation)

Parameters

formation Formation

OnUnitJoinOrLeave(Formation, Agent, bool)

public void OnUnitJoinOrLeave(Formation formation, Agent unit, bool isJoining)

Parameters

formation Formation
unit Agent
isJoining bool

ResetPositionCache()

public void ResetPositionCache()

Tick(Formation)

public bool Tick(Formation formation)

Parameters

formation Formation

Returns

bool

Operators

operator ==(in MovementOrder, MovementOrder)

public static bool operator ==(in MovementOrder m, MovementOrder obj)

Parameters

m MovementOrder
obj MovementOrder

Returns

bool

operator !=(in MovementOrder, MovementOrder)

public static bool operator !=(in MovementOrder m, MovementOrder obj)

Parameters

m MovementOrder
obj MovementOrder

Returns

bool

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