public class RouteLocationCalculator
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RouteLocationCalculator.IntervalType |
static class |
RouteLocationCalculator.TaskInterval |
Constructor and Description |
---|
RouteLocationCalculator() |
Modifier and Type | Method and Description |
---|---|
static void |
computeIntervalsAndSetLocation(CampaignFleetAPI fleet,
float daysElapsed,
float maxDays,
boolean onlyComputeIntervals,
RouteLocationCalculator.TaskInterval[] intervals,
SectorEntityToken... sequence) |
static JumpPointAPI |
findJumpPointToUse(CampaignFleetAPI fleet,
SectorEntityToken from) |
static JumpPointAPI |
findJumpPointToUse(FactionAPI faction,
SectorEntityToken from) |
static float |
getTravelDays(SectorEntityToken from,
SectorEntityToken to) |
static float |
getVarianceMult(float p) |
static boolean |
isInControlOfSystemOrEven(FactionAPI faction,
StarSystemAPI system) |
static int |
setLocation(CampaignFleetAPI fleet,
float daysElapsed,
float maxDays,
int overflowIndex,
boolean onlyAdjustIntervals,
float[] intervals,
SectorEntityToken... sequence)
Used to assign a reasonable location to a fleet that was just spawned by RouteManager.
|
static void |
setLocation(CampaignFleetAPI fleet,
float progress,
SectorEntityToken from,
SectorEntityToken to) |
public static float getTravelDays(SectorEntityToken from, SectorEntityToken to)
public static void computeIntervalsAndSetLocation(CampaignFleetAPI fleet, float daysElapsed, float maxDays, boolean onlyComputeIntervals, RouteLocationCalculator.TaskInterval[] intervals, SectorEntityToken... sequence)
public static int setLocation(CampaignFleetAPI fleet, float daysElapsed, float maxDays, int overflowIndex, boolean onlyAdjustIntervals, float[] intervals, SectorEntityToken... sequence)
fleet
- daysElapsed
- intervals
- sequence
- Must have length = intervals.length + 1.public static void setLocation(CampaignFleetAPI fleet, float progress, SectorEntityToken from, SectorEntityToken to)
public static float getVarianceMult(float p)
public static JumpPointAPI findJumpPointToUse(CampaignFleetAPI fleet, SectorEntityToken from)
public static JumpPointAPI findJumpPointToUse(FactionAPI faction, SectorEntityToken from)
public static boolean isInControlOfSystemOrEven(FactionAPI faction, StarSystemAPI system)
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.