Class TravelTimeCalculator
Helper to calculate overland travel time for travel map and Clock resource.
Travel time needs to be coordinated between these systems for quests to provide a
realistic amount of time for player to complete quest.
Inheritance
TravelTimeCalculator
Assembly: Assembly-CSharp.dll
Syntax
public class TravelTimeCalculator
Fields
|
Improve this Doc
View Source
climateIndices
Declaration
public static byte[] climateIndices
Field Value
|
Improve this Doc
View Source
piecesCost
Declaration
Field Value
|
Improve this Doc
View Source
totalCost
Declaration
Field Value
Properties
|
Improve this Doc
View Source
OceanPixels
Declaration
public int OceanPixels { get; }
Property Value
|
Improve this Doc
View Source
PiecesCost
Declaration
public int PiecesCost { get; }
Property Value
|
Improve this Doc
View Source
TotalCost
Declaration
public int TotalCost { get; }
Property Value
Methods
|
Improve this Doc
View Source
CalculateTravelTime(DFPosition, Boolean, Boolean, Boolean, Boolean, Boolean)
Creates a path from player's current location to destination and
returns minutes taken to travel.
Declaration
public int CalculateTravelTime(DFPosition endPos, bool speedCautious = false, bool sleepModeInn = false, bool travelShip = false, bool hasHorse = false, bool hasCart = false)
Parameters
Returns
|
Improve this Doc
View Source
CalculateTripCost(Int32, Boolean, Boolean, Boolean)
Declaration
public void CalculateTripCost(int travelTimeInMinutes, bool sleepModeInn, bool hasShip, bool travelShip)
Parameters
|
Improve this Doc
View Source
GetPlayerTravelPosition()
Gets current player position in map pixels for purposes of travel
Declaration
public static DFPosition GetPlayerTravelPosition()
Returns