Class DeliveryFailureConsequences
java.lang.Object
com.fs.starfarer.api.impl.campaign.intel.bar.events.DeliveryFailureConsequences
- All Implemented Interfaces:
FleetEventListener
,EveryFrameScript
public class DeliveryFailureConsequences
extends Object
implements EveryFrameScript, FleetEventListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
static float
protected float
protected float
protected FullName.Gender
protected String
static float
protected float
protected long
protected boolean
protected StarSystemAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) Use SectorAPI.getClock() to convert to campaign days.protected CampaignFleetAPI
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, Object param) boolean
protected void
-
Field Details
-
RADIUS_FROM_CORE
public static float RADIUS_FROM_CORE -
DAYS_IN_SYSTEM
public static float DAYS_IN_SYSTEM -
delayDays
protected float delayDays -
sentFleet
protected boolean sentFleet -
name
-
commodity
-
gender
-
reward
protected float reward -
seed
protected long seed -
systemPlayerIsIn
-
daysInSystem
protected float daysInSystem
-
-
Constructor Details
-
DeliveryFailureConsequences
-
-
Method Details
-
advance
public void advance(float amount) Description copied from interface:EveryFrameScript
Use SectorAPI.getClock() to convert to campaign days.- Specified by:
advance
in interfaceEveryFrameScript
- Parameters:
amount
- seconds elapsed during the last frame.
-
sendFleet
protected void sendFleet() -
createBountyHunter
-
isDone
public boolean isDone()- Specified by:
isDone
in interfaceEveryFrameScript
- Returns:
- true when the script is finished and can be cleaned up by the engine.
-
runWhilePaused
public boolean runWhilePaused()- Specified by:
runWhilePaused
in interfaceEveryFrameScript
- Returns:
- whether advance() should be called while the campaign engine is paused.
-
reportBattleOccurred
public void reportBattleOccurred(CampaignFleetAPI fleet, CampaignFleetAPI primaryWinner, BattleAPI battle) Description copied from interface:FleetEventListener
"fleet" will be null if the listener is registered with the ListenerManager, and non-null if the listener is added directly to a fleet.- Specified by:
reportBattleOccurred
in interfaceFleetEventListener
-
reportFleetDespawnedToListener
public void reportFleetDespawnedToListener(CampaignFleetAPI fleet, CampaignEventListener.FleetDespawnReason reason, Object param) - Specified by:
reportFleetDespawnedToListener
in interfaceFleetEventListener
-