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
m1MovementOrderm2MovementOrderisAIControlledbool
Returns
CreateNewOrderWorldPosition(Formation, WorldPositionEnforcedCache)
public WorldPosition CreateNewOrderWorldPosition(Formation f, WorldPosition.WorldPositionEnforcedCache worldPositionEnforcedCache)
Parameters
fFormationworldPositionEnforcedCacheWorldPosition.WorldPositionEnforcedCache
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
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
orderEnumMovementOrder.MovementOrderEnum
Returns
GetMovementOrderDefensivenessChange(MovementOrderEnum, MovementOrderEnum)
public static int GetMovementOrderDefensivenessChange(MovementOrder.MovementOrderEnum previousOrderEnum, MovementOrder.MovementOrderEnum nextOrderEnum)
Parameters
previousOrderEnumMovementOrder.MovementOrderEnumnextOrderEnumMovementOrder.MovementOrderEnum
Returns
GetPosition(Formation)
public Vec2 GetPosition(Formation f)
Parameters
Returns
GetSubstituteOrder(Formation)
public MovementOrder GetSubstituteOrder(Formation formation)
Parameters
formationFormation
Returns
GetTargetVelocity()
public Vec2 GetTargetVelocity()
Returns
IsApplicable(Formation)
public bool IsApplicable(Formation formation)
Parameters
formationFormation
Returns
MovementOrderAttackEntity(GameEntity, bool)
public static MovementOrder MovementOrderAttackEntity(GameEntity targetEntity, bool surroundEntity)
Parameters
targetEntityGameEntitysurroundEntitybool
Returns
MovementOrderChargeToTarget(Formation)
public static MovementOrder MovementOrderChargeToTarget(Formation targetFormation)
Parameters
targetFormationFormation
Returns
MovementOrderFollow(Agent)
public static MovementOrder MovementOrderFollow(Agent targetAgent)
Parameters
targetAgentAgent
Returns
MovementOrderFollowEntity(GameEntity)
public static MovementOrder MovementOrderFollowEntity(GameEntity targetEntity)
Parameters
targetEntityGameEntity
Returns
MovementOrderGuard(Agent)
public static MovementOrder MovementOrderGuard(Agent targetAgent)
Parameters
targetAgentAgent
Returns
MovementOrderMove(WorldPosition)
public static MovementOrder MovementOrderMove(WorldPosition position)
Parameters
positionWorldPosition
Returns
OnApply(Formation)
public void OnApply(Formation formation)
Parameters
formationFormation
OnArrangementChanged(Formation)
public void OnArrangementChanged(Formation formation)
Parameters
formationFormation
OnCancel(Formation)
public void OnCancel(Formation formation)
Parameters
formationFormation
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
formationFormation
Returns
Operators
operator ==(in MovementOrder, MovementOrder)
public static bool operator ==(in MovementOrder m, MovementOrder obj)
Parameters
mMovementOrderobjMovementOrder
Returns
operator !=(in MovementOrder, MovementOrder)
public static bool operator !=(in MovementOrder m, MovementOrder obj)
Parameters
mMovementOrderobjMovementOrder
Returns
This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).