public class DeliveryFailureConsequences extends java.lang.Object implements EveryFrameScript, FleetEventListener
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
commodity |
static float |
DAYS_IN_SYSTEM |
protected float |
daysInSystem |
protected float |
delayDays |
protected FullName.Gender |
gender |
protected java.lang.String |
name |
static float |
RADIUS_FROM_CORE |
protected float |
reward |
protected long |
seed |
protected boolean |
sentFleet |
protected StarSystemAPI |
systemPlayerIsIn |
Constructor and Description |
---|
DeliveryFailureConsequences(DeliveryMissionIntel intel) |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount)
Use SectorAPI.getClock() to convert to campaign days.
|
protected CampaignFleetAPI |
createBountyHunter() |
boolean |
isDone() |
void |
reportBattleOccurred(CampaignFleetAPI fleet,
CampaignFleetAPI primaryWinner,
BattleAPI battle)
"fleet" will be null if the listener is registered with the ListenerManager, and non-null
if the listener is added directly to a fleet.
|
void |
reportFleetDespawnedToListener(CampaignFleetAPI fleet,
CampaignEventListener.FleetDespawnReason reason,
java.lang.Object param) |
boolean |
runWhilePaused() |
protected void |
sendFleet() |
public static float RADIUS_FROM_CORE
public static float DAYS_IN_SYSTEM
protected float delayDays
protected boolean sentFleet
protected java.lang.String name
protected java.lang.String commodity
protected FullName.Gender gender
protected float reward
protected long seed
protected StarSystemAPI systemPlayerIsIn
protected float daysInSystem
public DeliveryFailureConsequences(DeliveryMissionIntel intel)
public void advance(float amount)
EveryFrameScript
advance
in interface EveryFrameScript
amount
- seconds elapsed during the last frame.protected void sendFleet()
protected CampaignFleetAPI createBountyHunter()
public boolean isDone()
isDone
in interface EveryFrameScript
public boolean runWhilePaused()
runWhilePaused
in interface EveryFrameScript
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle)
FleetEventListener
reportBattleOccurred
in interface FleetEventListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, java.lang.Object param)
reportFleetDespawnedToListener
in interface FleetEventListener
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.