Show / Hide Table of Contents

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
Object
TravelTimeCalculator
Namespace: DaggerfallWorkshop.Game.Utility
Assembly: Assembly-CSharp.dll
Syntax
public class TravelTimeCalculator

Fields

| Improve this Doc View Source

climateIndices

Declaration
public static byte[] climateIndices
Field Value
Type Description
Byte[]
| Improve this Doc View Source

piecesCost

Declaration
protected int piecesCost
Field Value
Type Description
Int32
| Improve this Doc View Source

totalCost

Declaration
protected int totalCost
Field Value
Type Description
Int32

Properties

| Improve this Doc View Source

OceanPixels

Declaration
public int OceanPixels { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

PiecesCost

Declaration
public int PiecesCost { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

TotalCost

Declaration
public int TotalCost { get; }
Property Value
Type Description
Int32

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
Type Name Description
DFPosition endPos

Endpoint in map pixel coordinates.

Boolean speedCautious
Boolean sleepModeInn
Boolean travelShip
Boolean hasHorse
Boolean hasCart
Returns
Type Description
Int32
| Improve this Doc View Source

CalculateTripCost(Int32, Boolean, Boolean, Boolean)

Declaration
public void CalculateTripCost(int travelTimeInMinutes, bool sleepModeInn, bool hasShip, bool travelShip)
Parameters
Type Name Description
Int32 travelTimeInMinutes
Boolean sleepModeInn
Boolean hasShip
Boolean travelShip
| Improve this Doc View Source

GetPlayerTravelPosition()

Gets current player position in map pixels for purposes of travel

Declaration
public static DFPosition GetPlayerTravelPosition()
Returns
Type Description
DFPosition
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX