MultiplePortRoute
extends Route
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- containsPort() : bool
- getExpMultiplierSum() : int
- getForwardRoute() : Route
- getMoneyMultiplierSum() : int
- getOneWayRoutes() : array<int, OneWayRoute>
- Recurse through the Route tree to get an ordered list.
- getOverallExpMultiplier() : float
- getOverallMoneyMultiplier() : float
- getPortSectorIDs() : array<string|int, int>
- Provides a list of sector IDs for all ports in the Route.
- getReturnRoute() : OneWayRoute
- getRouteString() : string
- getTurnsForRoute() : int
Properties
$forwardRoute read-only
private
Route
$forwardRoute
$returnRoute read-only
private
OneWayRoute
$returnRoute
Methods
__construct()
public
__construct(Route $forwardRoute, OneWayRoute $returnRoute) : mixed
Parameters
- $forwardRoute : Route
- $returnRoute : OneWayRoute
containsPort()
public
containsPort(int $sectorID) : bool
Parameters
- $sectorID : int
Return values
boolgetExpMultiplierSum()
public
getExpMultiplierSum() : int
Return values
intgetForwardRoute()
public
getForwardRoute() : Route
Return values
RoutegetMoneyMultiplierSum()
public
getMoneyMultiplierSum() : int
Return values
intgetOneWayRoutes()
Recurse through the Route tree to get an ordered list.
public
getOneWayRoutes() : array<int, OneWayRoute>
Return values
array<int, OneWayRoute>getOverallExpMultiplier()
public
getOverallExpMultiplier() : float
Return values
floatgetOverallMoneyMultiplier()
public
getOverallMoneyMultiplier() : float
Return values
floatgetPortSectorIDs()
Provides a list of sector IDs for all ports in the Route.
public
getPortSectorIDs() : array<string|int, int>
Return values
array<string|int, int>getReturnRoute()
public
getReturnRoute() : OneWayRoute
Return values
OneWayRoutegetRouteString()
public
getRouteString() : string
Return values
stringgetTurnsForRoute()
public
getTurnsForRoute() : int