Table of Contents

Class MapDistanceModel

Namespace
TaleWorlds.CampaignSystem.ComponentInterfaces
Assembly
TaleWorlds.CampaignSystem.dll
public abstract class MapDistanceModel : GameModel
Inheritance
MapDistanceModel
Derived
Inherited Members

Constructors

MapDistanceModel()

protected MapDistanceModel()

Properties

MaximumDistanceBetweenTwoSettlements

public abstract float MaximumDistanceBetweenTwoSettlements { get; set; }

Property Value

float

Methods

GetClosestSettlementForNavigationMesh(PathFaceRecord)

public abstract Settlement GetClosestSettlementForNavigationMesh(PathFaceRecord face)

Parameters

face PathFaceRecord

Returns

Settlement

GetDistance(IMapPoint, MobileParty, float, out float)

public abstract bool GetDistance(IMapPoint fromMapPoint, MobileParty toParty, float maximumDistance, out float distance)

Parameters

fromMapPoint IMapPoint
toParty MobileParty
maximumDistance float
distance float

Returns

bool

GetDistance(IMapPoint, Settlement, float, out float)

public abstract bool GetDistance(IMapPoint fromMapPoint, Settlement toSettlement, float maximumDistance, out float distance)

Parameters

fromMapPoint IMapPoint
toSettlement Settlement
maximumDistance float
distance float

Returns

bool

GetDistance(IMapPoint, in Vec2, float, out float)

public abstract bool GetDistance(IMapPoint fromMapPoint, in Vec2 toPoint, float maximumDistance, out float distance)

Parameters

fromMapPoint IMapPoint
toPoint Vec2
maximumDistance float
distance float

Returns

bool

GetDistance(MobileParty, MobileParty)

public abstract float GetDistance(MobileParty fromParty, MobileParty toParty)

Parameters

fromParty MobileParty
toParty MobileParty

Returns

float

GetDistance(MobileParty, Settlement)

public abstract float GetDistance(MobileParty fromParty, Settlement toSettlement)

Parameters

fromParty MobileParty
toSettlement Settlement

Returns

float

GetDistance(MobileParty, Settlement, float, out float)

public abstract bool GetDistance(MobileParty fromParty, Settlement toSettlement, float maximumDistance, out float distance)

Parameters

fromParty MobileParty
toSettlement Settlement
maximumDistance float
distance float

Returns

bool

GetDistance(Settlement, Settlement)

public abstract float GetDistance(Settlement fromSettlement, Settlement toSettlement)

Parameters

fromSettlement Settlement
toSettlement Settlement

Returns

float

GetDistance(Settlement, Settlement, float, out float)

public abstract bool GetDistance(Settlement fromSettlement, Settlement toSettlement, float maximumDistance, out float distance)

Parameters

fromSettlement Settlement
toSettlement Settlement
maximumDistance float
distance float

Returns

bool

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