Inherits TaleWorlds.Core.IMissionTeam.
|
| Team (MBTeam mbTeam, BattleSideEnum side, Mission mission, uint color=0xFFFFFFFF, uint color2=0xFFFFFFFF, Banner banner=null) |
|
void | UpdateCachedEnemyDataForFleeing () |
|
void | Reset () |
|
void | Clear () |
|
void | AssignPlayerAsSergeantOfFormation (MissionPeer peer, FormationClass formationClass) |
|
void | AddTacticOption (TacticComponent tacticOption) |
|
void | RemoveTacticOption (Type tacticType) |
|
void | ClearTacticOptions () |
|
void | ResetTactic () |
|
void | AddTeamAI (TeamAIComponent teamAI, bool forceNotAIControlled=false) |
|
void | DelegateCommandToAI () |
|
void | RearrangeFormationsAccordingToFilters (List< Tuple< Formation, int, TroopFilter, List< Agent > > > MassTransferData) |
|
void | OnFormationUnitsSpawned () |
|
void | Tick (float dt) |
|
Formation | GetFormation (FormationClass formationClass) |
|
void | SetIsEnemyOf (Team otherTeam, bool isEnemyOf) |
|
bool | IsEnemyOf (Team otherTeam) |
|
bool | IsFriendOf (Team otherTeam) |
|
void | AddAgentToTeam (Agent unit) |
|
void | RemoveAgentFromTeam (Agent unit) |
|
void | DeactivateAgent (Agent agent) |
|
override string | ToString () |
|
void | OnMissionEnded () |
|
void | TriggerOnFormationsChanged (Formation formation) |
|
OrderController | GetOrderControllerOf (Agent agent) |
|
void | ExpireAIQuerySystem () |
|
void | SetPlayerRole (bool isPlayerGeneral, bool isPlayerSergeant) |
|
bool | HasAnyEnemyTeamsWithAgents (bool ignoreMountedAgents) |
|
bool | HasAnyFormationsIncludingSpecialThatIsNotEmpty () |
|
int | GetFormationCount () |
|
int | GetAIControlledFormationCount () |
|
Vec2 | GetAveragePositionOfEnemies () |
|
Vec2 | GetAveragePosition () |
|
WorldPosition | GetMedianPosition (Vec2 averagePosition) |
|
Vec2 | GetWeightedAverageOfEnemies (Vec2 basePoint) |
|
◆ TroopFilter
Enumerator |
---|
HighTier | |
LowTier | |
Mount | |
Ranged | |
Melee | |
Shield | |
Spear | |
Thrown | |
Armor | |
◆ Team()
◆ UpdateCachedEnemyDataForFleeing()
void TaleWorlds.MountAndBlade.Team.UpdateCachedEnemyDataForFleeing |
( |
| ) |
|
◆ Reset()
void TaleWorlds.MountAndBlade.Team.Reset |
( |
| ) |
|
◆ Clear()
void TaleWorlds.MountAndBlade.Team.Clear |
( |
| ) |
|
◆ DoesFirstFormationClassContainSecond()
◆ GetFormationFormationClass()
◆ GetPlayerTeamFormationClass()
static FormationClass TaleWorlds.MountAndBlade.Team.GetPlayerTeamFormationClass |
( |
Agent |
mainAgent | ) |
|
|
static |
◆ AssignPlayerAsSergeantOfFormation()
◆ AddTacticOption()
void TaleWorlds.MountAndBlade.Team.AddTacticOption |
( |
TacticComponent |
tacticOption | ) |
|
◆ RemoveTacticOption()
void TaleWorlds.MountAndBlade.Team.RemoveTacticOption |
( |
Type |
tacticType | ) |
|
◆ ClearTacticOptions()
void TaleWorlds.MountAndBlade.Team.ClearTacticOptions |
( |
| ) |
|
◆ ResetTactic()
void TaleWorlds.MountAndBlade.Team.ResetTactic |
( |
| ) |
|
◆ AddTeamAI()
void TaleWorlds.MountAndBlade.Team.AddTeamAI |
( |
TeamAIComponent |
teamAI, |
|
|
bool |
forceNotAIControlled = false |
|
) |
| |
◆ DelegateCommandToAI()
void TaleWorlds.MountAndBlade.Team.DelegateCommandToAI |
( |
| ) |
|
◆ RearrangeFormationsAccordingToFilters()
void TaleWorlds.MountAndBlade.Team.RearrangeFormationsAccordingToFilters |
( |
List< Tuple< Formation, int, TroopFilter, List< Agent > > > |
MassTransferData | ) |
|
◆ OnFormationUnitsSpawned()
void TaleWorlds.MountAndBlade.Team.OnFormationUnitsSpawned |
( |
| ) |
|
◆ Tick()
void TaleWorlds.MountAndBlade.Team.Tick |
( |
float |
dt | ) |
|
◆ GetFormation()
◆ SetIsEnemyOf()
void TaleWorlds.MountAndBlade.Team.SetIsEnemyOf |
( |
Team |
otherTeam, |
|
|
bool |
isEnemyOf |
|
) |
| |
◆ IsEnemyOf()
bool TaleWorlds.MountAndBlade.Team.IsEnemyOf |
( |
Team |
otherTeam | ) |
|
◆ IsFriendOf()
bool TaleWorlds.MountAndBlade.Team.IsFriendOf |
( |
Team |
otherTeam | ) |
|
◆ AddAgentToTeam()
void TaleWorlds.MountAndBlade.Team.AddAgentToTeam |
( |
Agent |
unit | ) |
|
◆ RemoveAgentFromTeam()
void TaleWorlds.MountAndBlade.Team.RemoveAgentFromTeam |
( |
Agent |
unit | ) |
|
◆ DeactivateAgent()
void TaleWorlds.MountAndBlade.Team.DeactivateAgent |
( |
Agent |
agent | ) |
|
◆ ToString()
override string TaleWorlds.MountAndBlade.Team.ToString |
( |
| ) |
|
◆ OnMissionEnded()
void TaleWorlds.MountAndBlade.Team.OnMissionEnded |
( |
| ) |
|
◆ TriggerOnFormationsChanged()
void TaleWorlds.MountAndBlade.Team.TriggerOnFormationsChanged |
( |
Formation |
formation | ) |
|
◆ GetOrderControllerOf()
◆ ExpireAIQuerySystem()
void TaleWorlds.MountAndBlade.Team.ExpireAIQuerySystem |
( |
| ) |
|
◆ SetPlayerRole()
void TaleWorlds.MountAndBlade.Team.SetPlayerRole |
( |
bool |
isPlayerGeneral, |
|
|
bool |
isPlayerSergeant |
|
) |
| |
◆ HasAnyEnemyTeamsWithAgents()
bool TaleWorlds.MountAndBlade.Team.HasAnyEnemyTeamsWithAgents |
( |
bool |
ignoreMountedAgents | ) |
|
◆ HasAnyFormationsIncludingSpecialThatIsNotEmpty()
bool TaleWorlds.MountAndBlade.Team.HasAnyFormationsIncludingSpecialThatIsNotEmpty |
( |
| ) |
|
◆ GetFormationCount()
int TaleWorlds.MountAndBlade.Team.GetFormationCount |
( |
| ) |
|
◆ GetAIControlledFormationCount()
int TaleWorlds.MountAndBlade.Team.GetAIControlledFormationCount |
( |
| ) |
|
◆ GetAveragePositionOfEnemies()
Vec2 TaleWorlds.MountAndBlade.Team.GetAveragePositionOfEnemies |
( |
| ) |
|
◆ GetAveragePosition()
Vec2 TaleWorlds.MountAndBlade.Team.GetAveragePosition |
( |
| ) |
|
◆ GetMedianPosition()
WorldPosition TaleWorlds.MountAndBlade.Team.GetMedianPosition |
( |
Vec2 |
averagePosition | ) |
|
◆ GetWeightedAverageOfEnemies()
Vec2 TaleWorlds.MountAndBlade.Team.GetWeightedAverageOfEnemies |
( |
Vec2 |
basePoint | ) |
|
◆ MBTeam
readonly MBTeam TaleWorlds.MountAndBlade.Team.MBTeam |
◆ Side
◆ Mission
Mission TaleWorlds.MountAndBlade.Team.Mission |
|
get |
◆ FormationsIncludingEmpty
◆ FormationsIncludingSpecialAndEmpty
MBList<Formation> TaleWorlds.MountAndBlade.Team.FormationsIncludingSpecialAndEmpty |
|
get |
◆ TeamAI
◆ IsPlayerTeam
bool TaleWorlds.MountAndBlade.Team.IsPlayerTeam |
|
get |
◆ IsPlayerAlly
bool TaleWorlds.MountAndBlade.Team.IsPlayerAlly |
|
get |
◆ IsDefender
bool TaleWorlds.MountAndBlade.Team.IsDefender |
|
get |
◆ IsAttacker
bool TaleWorlds.MountAndBlade.Team.IsAttacker |
|
get |
◆ Color
uint TaleWorlds.MountAndBlade.Team.Color |
|
get |
◆ Color2
uint TaleWorlds.MountAndBlade.Team.Color2 |
|
get |
◆ Banner
Banner TaleWorlds.MountAndBlade.Team.Banner |
|
get |
◆ MasterOrderController
◆ PlayerOrderController
◆ QuerySystem
◆ DetachmentManager
◆ IsPlayerGeneral
bool TaleWorlds.MountAndBlade.Team.IsPlayerGeneral |
|
get |
◆ IsPlayerSergeant
bool TaleWorlds.MountAndBlade.Team.IsPlayerSergeant |
|
get |
◆ ActiveAgents
◆ TeamAgents
◆ CachedEnemyDataForFleeing
- MaxSpeed of enemy group
- MedianPosition of enemy group
- Size of enemy group (number of agents)
- Line segment start position of enemy group/formation (if size > 0)
- Line segment end position of enemy group/formation (if size > 0)
- Whether if enemy is cavalry REMARK_ATES: This was used to be enemyData within Mission.cs... but moved here for optimization purposes as it can be computed once for each team with panicking formations and agents during pre-tick. This data can be re-used by panicking/retreating agents within this team but will be cleared every tick
◆ TeamIndex
int TaleWorlds.MountAndBlade.Team.TeamIndex |
|
get |
◆ MoraleChangeFactor
float TaleWorlds.MountAndBlade.Team.MoraleChangeFactor |
|
get |
◆ GeneralsFormation
Formation TaleWorlds.MountAndBlade.Team.GeneralsFormation |
|
getset |
◆ BodyGuardFormation
Formation TaleWorlds.MountAndBlade.Team.BodyGuardFormation |
|
getset |
◆ GeneralAgent
Agent TaleWorlds.MountAndBlade.Team.GeneralAgent |
|
getset |
◆ Heroes
IEnumerable<Agent> TaleWorlds.MountAndBlade.Team.Heroes |
|
get |
◆ HasBots
bool TaleWorlds.MountAndBlade.Team.HasBots |
|
get |
◆ Leader
Agent TaleWorlds.MountAndBlade.Team.Leader |
|
get |
◆ Invalid
Team TaleWorlds.MountAndBlade.Team.Invalid |
|
staticget |
◆ IsValid
bool TaleWorlds.MountAndBlade.Team.IsValid |
|
get |
◆ HasTeamAi
bool TaleWorlds.MountAndBlade.Team.HasTeamAi |
|
get |
◆ OnFormationsChanged
◆ OnOrderIssued
◆ OnFormationAIActiveBehaviorChanged
Action<Formation> TaleWorlds.MountAndBlade.Team.OnFormationAIActiveBehaviorChanged |