M&B: Bannerlord 1.0.0
The horns sound, the ravens gather.
|
Inherits TaleWorlds.MountAndBlade.IDetachment.
Public Member Functions | |
AttackEntityOrderDetachment (GameEntity targetEntity) | |
Vec3 | GetPosition () |
void | AddAgent (Agent agent, int slotIndex) |
void | AddAgentAtSlotIndex (Agent agent, int slotIndex) |
bool | IsUsedByFormation (Formation formation) |
bool | IsStandingPointAvailableForAgent (Agent agent) |
float[] | GetTemplateCostsOfAgent (Agent candidate, float[] oldValue) |
float | GetTemplateWeightOfAgent (Agent candidate) |
float? | GetWeightOfAgentAtNextSlot (IEnumerable< Agent > newAgents, out Agent match) |
float? | GetWeightOfAgentAtNextSlot (IEnumerable< AgentValuePair< float > > agentTemplateScores, out Agent match) |
float? | GetWeightOfAgentAtOccupiedSlot (Agent detachedAgent, IEnumerable< Agent > newAgents, out Agent match) |
void | RemoveAgent (Agent agent) |
WorldFrame? | GetAgentFrame (Agent agent) |
Returns null for siege weapons and other detachments that sets scripted frame for the agent. Returns a frame otherwise. More... | |
float? | GetWeightOfNextSlot (BattleSideEnum side) |
Null if there is no vacancy left. Otherwise it is a positive number. More... | |
float | GetWeightOfOccupiedSlot (Agent agent) |
bool | IsAgentUsingOrMovingTo (Agent agent) |
float? | GetWeightOfNextSlot (BattleSideEnum side) |
Null if there is no vacancy left. Otherwise it is a positive number. More... | |
float | GetDetachmentWeight (BattleSideEnum side) |
float | ComputeAndCacheDetachmentWeight (BattleSideEnum side) |
float | GetDetachmentWeightFromCache () |
List< ValueTuple< int, float > > | GetSlotIndexWeightTuples () |
bool | IsSlotAtIndexAvailableForAgent (int slotIndex, Agent agent) |
bool | IsAgentEligible (Agent agent) |
void | AddAgentAtSlotIndex (Agent agent, int slotIndex) |
Agent | GetMovingAgentAtSlotIndex (int slotIndex) |
void | MarkSlotAtIndex (int slotIndex) |
bool | IsDetachmentRecentlyEvaluated () |
void | UnmarkDetachment () |
float? | GetWeightOfAgentAtNextSlot (IEnumerable< Agent > candidates, out Agent match) |
float? | GetWeightOfAgentAtNextSlot (IEnumerable< AgentValuePair< float > > agentTemplateScores, out Agent match) |
float | GetTemplateWeightOfAgent (Agent candidate) |
float[] | GetTemplateCostsOfAgent (Agent candidate, float[] oldValue) |
float | GetExactCostOfAgentAtSlot (Agent candidate, int slotIndex) |
float | GetWeightOfOccupiedSlot (Agent detachedAgent) |
float? | GetWeightOfAgentAtOccupiedSlot (Agent detachedAgent, IEnumerable< Agent > candidates, out Agent match) |
bool | IsStandingPointAvailableForAgent (Agent agent) |
void | AddAgent (Agent agent, int slotIndex=-1) |
void | RemoveAgent (Agent detachedAgent) |
void | FormationStartUsing (Formation formation) |
void | FormationStopUsing (Formation formation) |
bool | IsUsedByFormation (Formation formation) |
WorldFrame? | GetAgentFrame (Agent detachedAgent) |
Returns null for siege weapons and other detachments that sets scripted frame for the agent. Returns a frame otherwise. More... | |
void | ResetEvaluation () |
bool | IsEvaluated () |
void | SetAsEvaluated () |
void | OnFormationLeave (Formation formation) |
Properties | |
IReadOnlyList< Formation > | UserFormations [get] |
IEnumerable< Agent > | Agents [get] |
Detached agents of this detachment More... | |
bool | IsLoose [get] |
bool | IsActive [get] |
Properties inherited from TaleWorlds.MountAndBlade.IDetachment | |
IEnumerable< Agent > | Agents [get] |
Detached agents of this detachment More... | |
IReadOnlyList< Formation > | UserFormations [get] |
bool | IsLoose [get] |
TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AttackEntityOrderDetachment | ( | GameEntity | targetEntity | ) |
Vec3 TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetPosition | ( | ) |
void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AddAgent | ( | Agent | agent, |
int | slotIndex | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.AddAgentAtSlotIndex | ( | Agent | agent, |
int | slotIndex | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsUsedByFormation | ( | Formation | formation | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
bool TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.IsStandingPointAvailableForAgent | ( | Agent | agent | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float[] TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetTemplateCostsOfAgent | ( | Agent | candidate, |
float[] | oldValue | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetTemplateWeightOfAgent | ( | Agent | candidate | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtNextSlot | ( | IEnumerable< Agent > | newAgents, |
out Agent | match | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtNextSlot | ( | IEnumerable< AgentValuePair< float > > | agentTemplateScores, |
out Agent | match | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfAgentAtOccupiedSlot | ( | Agent | detachedAgent, |
IEnumerable< Agent > | newAgents, | ||
out Agent | match | ||
) |
Implements TaleWorlds.MountAndBlade.IDetachment.
void TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.RemoveAgent | ( | Agent | agent | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
WorldFrame? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetAgentFrame | ( | Agent | detachedAgent | ) |
float? TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfNextSlot | ( | BattleSideEnum | side | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
float TaleWorlds.MountAndBlade.AttackEntityOrderDetachment.GetWeightOfOccupiedSlot | ( | Agent | agent | ) |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |
Implements TaleWorlds.MountAndBlade.IDetachment.
|
get |