Starsector API
|
Public Member Functions | |
void | advanceInCampaign (CampaignFleetAPI fleet) |
boolean | withAdvanceInCampaign () |
boolean | withOnFleetSync () |
void | onFleetSync (CampaignFleetAPI fleet) |
Implement this in addition to HullModEffect, not by itself.
Note: the effect class is instantiated once per application session. Storing campaign data in members of an implementing class is a bad idea, use SectorAPI.getPersistentData() instead.
Copyright 2013 Fractal Softworks, LLC
Definition at line 16 of file HullModFleetEffect.java.
void com.fs.starfarer.api.combat.HullModFleetEffect.advanceInCampaign | ( | CampaignFleetAPI | fleet | ) |
Called for every fleet, even fleets that don't have a ship with the specific hullmod.
Shouldn't try to do a lot here; could have a lot of performance repercussions.
fleet |
void com.fs.starfarer.api.combat.HullModFleetEffect.onFleetSync | ( | CampaignFleetAPI | fleet | ) |
Called when anything about the fleet composition changes, including hullmod changes. Also called for all fleets, including fleets without ships with this hullmod.
fleet |
boolean com.fs.starfarer.api.combat.HullModFleetEffect.withAdvanceInCampaign | ( | ) |
Whether the advanceInCampaign() method should be called for this hullmod.
boolean com.fs.starfarer.api.combat.HullModFleetEffect.withOnFleetSync | ( | ) |
Whether the withOnFleetSync() method should be called for this hullmod.