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
MovementOrderCharge
public static readonly MovementOrder MovementOrderCharge
Field Value
MovementOrderFallBack
public static readonly MovementOrder MovementOrderFallBack
Field Value
MovementOrderNull
public static readonly MovementOrder MovementOrderNull
Field Value
MovementOrderRetreat
public static readonly MovementOrder MovementOrderRetreat
Field Value
MovementOrderStop
public static readonly MovementOrder MovementOrderStop
Field Value
OrderEnum
public readonly MovementOrder.MovementOrderEnum OrderEnum
Field Value
TargetEntity
public GameEntity TargetEntity
Field Value
_isFacingDirection
public readonly bool _isFacingDirection
Field Value
Properties
MovementState
public MovementOrder.MovementStateEnum MovementState { get; }
Property Value
OrderType
public OrderType OrderType { get; }
Property Value
TargetFormation
public Formation TargetFormation { get; }
Property Value
_targetAgent
public Agent _targetAgent { get; }
Property Value
Methods
Advance(Formation, float)
public void Advance(Formation formation, float distance)
Parameters
AreOrdersPracticallySame(MovementOrder, MovementOrder, bool)
public bool AreOrdersPracticallySame(MovementOrder m1, MovementOrder m2, bool isAIControlled)
Parameters
m1
MovementOrderm2
MovementOrderisAIControlled
bool
Returns
CreateNewOrderWorldPosition(Formation, WorldPositionEnforcedCache)
public WorldPosition CreateNewOrderWorldPosition(Formation f, WorldPosition.WorldPositionEnforcedCache worldPositionEnforcedCache)
Parameters
f
FormationworldPositionEnforcedCache
WorldPosition.WorldPositionEnforcedCache
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
obj
object
Returns
FallBack(Formation, float)
public void FallBack(Formation formation, float distance)
Parameters
GetHashCode()
public override int GetHashCode()
Returns
GetMovementOrderDefensiveness(MovementOrderEnum)
public static int GetMovementOrderDefensiveness(MovementOrder.MovementOrderEnum orderEnum)
Parameters
orderEnum
MovementOrder.MovementOrderEnum
Returns
GetMovementOrderDefensivenessChange(MovementOrderEnum, MovementOrderEnum)
public static int GetMovementOrderDefensivenessChange(MovementOrder.MovementOrderEnum previousOrderEnum, MovementOrder.MovementOrderEnum nextOrderEnum)
Parameters
previousOrderEnum
MovementOrder.MovementOrderEnumnextOrderEnum
MovementOrder.MovementOrderEnum
Returns
GetPosition(Formation)
public Vec2 GetPosition(Formation f)
Parameters
Returns
GetSubstituteOrder(Formation)
public MovementOrder GetSubstituteOrder(Formation formation)
Parameters
formation
Formation
Returns
GetTargetVelocity()
public Vec2 GetTargetVelocity()
Returns
IsApplicable(Formation)
public bool IsApplicable(Formation formation)
Parameters
formation
Formation
Returns
MovementOrderAttackEntity(GameEntity, bool)
public static MovementOrder MovementOrderAttackEntity(GameEntity targetEntity, bool surroundEntity)
Parameters
targetEntity
GameEntitysurroundEntity
bool
Returns
MovementOrderChargeToTarget(Formation)
public static MovementOrder MovementOrderChargeToTarget(Formation targetFormation)
Parameters
targetFormation
Formation
Returns
MovementOrderFollow(Agent)
public static MovementOrder MovementOrderFollow(Agent targetAgent)
Parameters
targetAgent
Agent
Returns
MovementOrderFollowEntity(GameEntity)
public static MovementOrder MovementOrderFollowEntity(GameEntity targetEntity)
Parameters
targetEntity
GameEntity
Returns
MovementOrderGuard(Agent)
public static MovementOrder MovementOrderGuard(Agent targetAgent)
Parameters
targetAgent
Agent
Returns
MovementOrderMove(WorldPosition)
public static MovementOrder MovementOrderMove(WorldPosition position)
Parameters
position
WorldPosition
Returns
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
ResetPositionCache()
public void ResetPositionCache()
Tick(Formation)
public bool Tick(Formation formation)
Parameters
formation
Formation
Returns
Operators
operator ==(in MovementOrder, MovementOrder)
public static bool operator ==(in MovementOrder m, MovementOrder obj)
Parameters
m
MovementOrderobj
MovementOrder
Returns
operator !=(in MovementOrder, MovementOrder)
public static bool operator !=(in MovementOrder m, MovementOrder obj)
Parameters
m
MovementOrderobj
MovementOrder
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).