Interface Connection

A directed connection between two waypoints

Author

Lukas Scheuerle, HFU, 2024

interface Connection {
    cost: number;
    end: Waypoint;
    speedModifier: number;
    start: Waypoint;
}

Properties

cost: number

The cost of the connection, the higher the less likely to be taken. Cannot be negative.

The end / target waypoint of this connection.

speedModifier: number

Modifies the speed that a walker can walk past this connection by multiplying the speed with this value. Needs to be >0

start: Waypoint

The start / origin waypoint of this connection.