M&B: Bannerlord 1.1.0
The horns sound, the ravens gather.
|
Public Member Functions | |
OrderController (Mission mission, Team team, Agent owner) | |
void | SelectFormation (Formation formation) |
void | DeselectFormation (Formation formation) |
bool | IsFormationListening (Formation formation) |
bool | IsFormationSelectable (Formation formation) |
bool | BackupAndDisableGesturesEnabled () |
void | RestoreGesturesEnabled (bool oldValue) |
void | SelectAllFormations (bool uiFeedback=false) |
Does not select empty or special (bodyguard etc...) formations. | |
void | ClearSelectedFormations () |
void | ReleaseFormationsFromAI () |
void | SetOrder (OrderType orderType) |
void | SetOrderWithAgent (OrderType orderType, Agent agent) |
void | SetOrderWithPosition (OrderType orderType, WorldPosition orderPosition) |
void | SetOrderWithFormation (OrderType orderType, Formation orderFormation) |
void | SetOrderWithFormationAndPercentage (OrderType orderType, Formation orderFormation, float percentage) |
void | TransferUnitWithPriorityFunction (Formation orderFormation, int number, bool hasShield, bool hasSpear, bool hasThrown, bool isHeavy, bool isRanged, bool isMounted, bool excludeBannerman, List< Agent > excludedAgents) |
Only to be used by Order of Battle UI. | |
void | RearrangeFormationsAccordingToFilters (Team team, List< Tuple< Formation, int, Team.TroopFilter, List< Agent > > > MassTransferData) |
Only to be used by Order of Battle UI. | |
void | SetOrderWithFormationAndNumber (OrderType orderType, Formation orderFormation, int number) |
void | SetOrderWithTwoPositions (OrderType orderType, WorldPosition position1, WorldPosition position2) |
void | SetOrderWithOrderableObject (IOrderable target) |
void | SimulateNewOrderWithPositionAndDirection (WorldPosition formationLineBegin, WorldPosition formationLineEnd, out List< WorldPosition > simulationAgentFrames, bool isFormationLayoutVertical) |
void | SimulateNewFacingOrder (Vec2 direction, out List< WorldPosition > simulationAgentFrames) |
void | SimulateNewCustomWidthOrder (float width, out List< WorldPosition > simulationAgentFrames) |
void | SimulateDestinationFrames (out List< WorldPosition > simulationAgentFrames, float minDistance=3f) |
void | TransferUnits (Formation source, Formation target, int count) |
IEnumerable< Formation > | SplitFormation (Formation formation, int count=2) |
void | TickDebug () |
void | AddOrderOverride (Func< Formation, MovementOrder, MovementOrder > orderOverride) |
OrderType | GetOverridenOrderType (Formation formation) |
Static Public Member Functions | |
static OrderType | GetActiveMovementOrderOf (Formation formation) |
static OrderType | GetActiveFacingOrderOf (Formation formation) |
static OrderType | GetActiveRidingOrderOf (Formation formation) |
static OrderType | GetActiveArrangementOrderOf (Formation formation) |
static OrderType | GetActiveFormOrderOf (Formation formation) |
static OrderType | GetActiveWeaponUsageOrderOf (Formation formation) |
static OrderType | GetActiveFiringOrderOf (Formation formation) |
static OrderType | GetActiveAIControlOrderOf (Formation formation) |
static void | SimulateNewOrderWithPositionAndDirection (IEnumerable< Formation > formations, Dictionary< Formation, Formation > simulationFormations, WorldPosition formationLineBegin, WorldPosition formationLineEnd, out List< WorldPosition > simulationAgentFrames, bool isFormationLayoutVertical=true) |
static void | SimulateNewOrderWithPositionAndDirection (IEnumerable< Formation > formations, Dictionary< Formation, Formation > simulationFormations, WorldPosition formationLineBegin, WorldPosition formationLineEnd, out List< ValueTuple< Formation, int, float, WorldPosition, Vec2 > > formationChanges, out bool isLineShort, bool isFormationLayoutVertical=true) |
static IEnumerable< Formation > | SortFormationsForHorizontalLayout (IEnumerable< Formation > formations) |
static Vec2 | GetOrderLookAtDirection (IEnumerable< Formation > formations, Vec2 target) |
static float | GetOrderFormCustomWidth (IEnumerable< Formation > formations, Vec3 orderPosition) |
Public Attributes | |
Agent | Owner |
Static Public Attributes | |
const float | FormationGapInLine = 1.5f |
Properties | |
SiegeWeaponController | SiegeWeaponController [get] |
MBReadOnlyList< Formation > | SelectedFormations [get] |
Dictionary< Formation, Formation > | simulationFormations [get] |
Events | |
OnOrderIssuedDelegate | OnOrderIssued |
Action | OnSelectedFormationsChanged |
TaleWorlds.MountAndBlade.OrderController.OrderController | ( | Mission | mission, |
Team | team, | ||
Agent | owner | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SelectFormation | ( | Formation | formation | ) |
void TaleWorlds.MountAndBlade.OrderController.DeselectFormation | ( | Formation | formation | ) |
bool TaleWorlds.MountAndBlade.OrderController.IsFormationListening | ( | Formation | formation | ) |
bool TaleWorlds.MountAndBlade.OrderController.IsFormationSelectable | ( | Formation | formation | ) |
bool TaleWorlds.MountAndBlade.OrderController.BackupAndDisableGesturesEnabled | ( | ) |
void TaleWorlds.MountAndBlade.OrderController.RestoreGesturesEnabled | ( | bool | oldValue | ) |
void TaleWorlds.MountAndBlade.OrderController.SelectAllFormations | ( | bool | uiFeedback = false | ) |
void TaleWorlds.MountAndBlade.OrderController.ClearSelectedFormations | ( | ) |
void TaleWorlds.MountAndBlade.OrderController.ReleaseFormationsFromAI | ( | ) |
void TaleWorlds.MountAndBlade.OrderController.SetOrder | ( | OrderType | orderType | ) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithAgent | ( | OrderType | orderType, |
Agent | agent | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithPosition | ( | OrderType | orderType, |
WorldPosition | orderPosition | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithFormation | ( | OrderType | orderType, |
Formation | orderFormation | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithFormationAndPercentage | ( | OrderType | orderType, |
Formation | orderFormation, | ||
float | percentage | ||
) |
void TaleWorlds.MountAndBlade.OrderController.TransferUnitWithPriorityFunction | ( | Formation | orderFormation, |
int | number, | ||
bool | hasShield, | ||
bool | hasSpear, | ||
bool | hasThrown, | ||
bool | isHeavy, | ||
bool | isRanged, | ||
bool | isMounted, | ||
bool | excludeBannerman, | ||
List< Agent > | excludedAgents | ||
) |
void TaleWorlds.MountAndBlade.OrderController.RearrangeFormationsAccordingToFilters | ( | Team | team, |
List< Tuple< Formation, int, Team::TroopFilter, List< Agent > > > | MassTransferData | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithFormationAndNumber | ( | OrderType | orderType, |
Formation | orderFormation, | ||
int | number | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithTwoPositions | ( | OrderType | orderType, |
WorldPosition | position1, | ||
WorldPosition | position2 | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SetOrderWithOrderableObject | ( | IOrderable | target | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
void TaleWorlds.MountAndBlade.OrderController.SimulateNewOrderWithPositionAndDirection | ( | WorldPosition | formationLineBegin, |
WorldPosition | formationLineEnd, | ||
out List< WorldPosition > | simulationAgentFrames, | ||
bool | isFormationLayoutVertical | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SimulateNewFacingOrder | ( | Vec2 | direction, |
out List< WorldPosition > | simulationAgentFrames | ||
) |
void TaleWorlds.MountAndBlade.OrderController.SimulateNewCustomWidthOrder | ( | float | width, |
out List< WorldPosition > | simulationAgentFrames | ||
) |
|
static |
|
static |
void TaleWorlds.MountAndBlade.OrderController.SimulateDestinationFrames | ( | out List< WorldPosition > | simulationAgentFrames, |
float | minDistance = 3f |
||
) |
|
static |
|
static |
|
static |
void TaleWorlds.MountAndBlade.OrderController.TransferUnits | ( | Formation | source, |
Formation | target, | ||
int | count | ||
) |
IEnumerable< Formation > TaleWorlds.MountAndBlade.OrderController.SplitFormation | ( | Formation | formation, |
int | count = 2 |
||
) |
void TaleWorlds.MountAndBlade.OrderController.TickDebug | ( | ) |
void TaleWorlds.MountAndBlade.OrderController.AddOrderOverride | ( | Func< Formation, MovementOrder, MovementOrder > | orderOverride | ) |
|
static |
Agent TaleWorlds.MountAndBlade.OrderController.Owner |
|
get |
|
get |
OnOrderIssuedDelegate TaleWorlds.MountAndBlade.OrderController.OnOrderIssued |
Action TaleWorlds.MountAndBlade.OrderController.OnSelectedFormationsChanged |