Table of Contents

Class MobilePartyAi

Namespace
TaleWorlds.CampaignSystem.Party
Assembly
TaleWorlds.CampaignSystem.dll
public class MobilePartyAi
Inheritance
MobilePartyAi
Inherited Members

Fields

GoAroundPartyWaitNearbyRadiusMultiplier

public const float GoAroundPartyWaitNearbyRadiusMultiplier = 1.2

Field Value

float

HourCounter

[SaveableField(6)]
public int HourCounter

Field Value

int

Properties

AiBehaviorMapEntity

public IMapEntity AiBehaviorMapEntity { get; set; }

Property Value

IMapEntity

AiBehaviorPartyBase

public PartyBase AiBehaviorPartyBase { get; }

Property Value

PartyBase

DefaultBehavior

public AiBehavior DefaultBehavior { get; }

Property Value

AiBehavior

DoNotAttackMainPartyUntil

[SaveableProperty(31)]
public CampaignTime DoNotAttackMainPartyUntil { get; }

Property Value

CampaignTime

DoNotMakeNewDecisions

[SaveableProperty(11)]
public bool DoNotMakeNewDecisions { get; }

Property Value

bool

ForceAiNoPathMode

[CachedData]
public bool ForceAiNoPathMode { get; set; }

Property Value

bool

IsAlerted

[SaveableProperty(17)]
public bool IsAlerted { get; }

Property Value

bool

IsDisabled

public bool IsDisabled { get; }

Property Value

bool

MoveTargetParty

[SaveableProperty(26)]
public MobileParty MoveTargetParty { get; }

Property Value

MobileParty

NeedTargetReset

public bool NeedTargetReset { get; }

Property Value

bool

NextTargetPosition

[SaveableProperty(27)]
public Vec2 NextTargetPosition { get; }

Property Value

Vec2

NumberOfRecentFleeingFromAParty

public int NumberOfRecentFleeingFromAParty { get; }

Property Value

int

PartyMoveMode

[SaveableProperty(24)]
public MoveModeType PartyMoveMode { get; }

Property Value

MoveModeType

Path

[CachedData]
public NavigationPath Path { get; }

Property Value

NavigationPath

PathBegin

[CachedData]
public int PathBegin { get; }

Property Value

int

RethinkAtNextHourlyTick

[SaveableProperty(10)]
public bool RethinkAtNextHourlyTick { get; set; }

Property Value

bool

Methods

AutoGeneratedInstanceCollectObjects(List<object>)

protected virtual void AutoGeneratedInstanceCollectObjects(List<object> collectedObjects)

Parameters

collectedObjects List<object>

CheckPartyNeedsUpdate()

public void CheckPartyNeedsUpdate()

DisableAi()

public void DisableAi()

DisableForHours(int)

public void DisableForHours(int hours)

Parameters

hours int

EnableAgainAtHourIsPast()

public bool EnableAgainAtHourIsPast()

Returns

bool

EnableAi()

public void EnableAi()

IsFleeing()

public bool IsFleeing()

Returns

bool

RecalculateShortTermAi()

public void RecalculateShortTermAi()

ResetAiBehaviorObject()

public void ResetAiBehaviorObject()

SetAsMainParty()

public void SetAsMainParty()

SetDoNotAttackMainParty(int)

public void SetDoNotAttackMainParty(int hours)

Parameters

hours int

SetDoNotMakeNewDecisions(bool)

public void SetDoNotMakeNewDecisions(bool doNotMakeNewDecisions)

Parameters

doNotMakeNewDecisions bool

SetInitiative(float, float, float)

public void SetInitiative(float attackInitiative, float avoidInitiative, float hoursUntilReset)

Parameters

attackInitiative float
avoidInitiative float
hoursUntilReset float

SetMoveBesiegeSettlement(Settlement)

public void SetMoveBesiegeSettlement(Settlement settlement)

Parameters

settlement Settlement

SetMoveDefendSettlement(Settlement)

public void SetMoveDefendSettlement(Settlement settlement)

Parameters

settlement Settlement

SetMoveEngageParty(MobileParty)

public void SetMoveEngageParty(MobileParty party)

Parameters

party MobileParty

SetMoveEscortParty(MobileParty)

public void SetMoveEscortParty(MobileParty mobileParty)

Parameters

mobileParty MobileParty

SetMoveGoAroundParty(MobileParty)

public void SetMoveGoAroundParty(MobileParty party)

Parameters

party MobileParty

SetMoveGoToPoint(Vec2)

public void SetMoveGoToPoint(Vec2 point)

Parameters

point Vec2

SetMoveGoToSettlement(Settlement)

public void SetMoveGoToSettlement(Settlement settlement)

Parameters

settlement Settlement

SetMoveModeHold()

public void SetMoveModeHold()

SetMovePatrolAroundPoint(Vec2)

public void SetMovePatrolAroundPoint(Vec2 point)

Parameters

point Vec2

SetMovePatrolAroundSettlement(Settlement)

public void SetMovePatrolAroundSettlement(Settlement settlement)

Parameters

settlement Settlement

SetMoveRaidSettlement(Settlement)

public void SetMoveRaidSettlement(Settlement settlement)

Parameters

settlement Settlement

This page was last modified at 09/01/2024 16:12:00 +00:00 (UTC).