public class DroneStrikeStats extends BaseShipSystemScript implements DroneStrikeStatsAIInfoProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
DroneStrikeStats.DroneMissileScript |
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fired |
protected ShipAPI |
forceNextTarget |
protected WeaponAPI |
weapon |
| Constructor and Description |
|---|
DroneStrikeStats() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MutableShipStatsAPI stats,
java.lang.String id,
ShipSystemStatsScript.State state,
float effectLevel) |
void |
convertDrones(ShipAPI ship,
ShipAPI target) |
boolean |
droneStrikeUsefulVsFighters() |
boolean |
dronesUsefulAsPD() |
protected ShipAPI |
findTarget(ShipAPI ship) |
java.util.List<ShipAPI> |
getDrones(ShipAPI ship) |
ShipAPI |
getForceNextTarget() |
java.lang.String |
getInfoText(ShipSystemAPI system,
ShipAPI ship)
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.
|
int |
getMaxDrones() |
float |
getMaxRange(ShipAPI ship) |
float |
getMissileSpeed() |
protected int |
getNumToFire() |
ShipSystemStatsScript.StatusData |
getStatusData(int index,
ShipSystemStatsScript.State state,
float effectLevel) |
protected java.lang.String |
getWeaponId() |
boolean |
isUsable(ShipSystemAPI system,
ShipAPI ship) |
void |
setForceNextTarget(ShipAPI forceNextTarget) |
void |
unapply(MutableShipStatsAPI stats,
java.lang.String id) |
getActiveOverride, getDisplayNameOverride, getInOverride, getOutOverride, getRegenOverride, getUsesOverrideprotected boolean fired
protected ShipAPI forceNextTarget
public DroneStrikeStats()
protected java.lang.String getWeaponId()
protected int getNumToFire()
public void apply(MutableShipStatsAPI stats, java.lang.String id, ShipSystemStatsScript.State state, float effectLevel)
apply in interface ShipSystemStatsScriptapply in class BaseShipSystemScriptpublic void convertDrones(ShipAPI ship, ShipAPI target)
public void unapply(MutableShipStatsAPI stats, java.lang.String id)
unapply in interface ShipSystemStatsScriptunapply in class BaseShipSystemScriptprotected ShipAPI findTarget(ShipAPI ship)
public ShipSystemStatsScript.StatusData getStatusData(int index, ShipSystemStatsScript.State state, float effectLevel)
getStatusData in interface ShipSystemStatsScriptgetStatusData in class BaseShipSystemScriptpublic java.util.List<ShipAPI> getDrones(ShipAPI ship)
getDrones in interface DroneStrikeStatsAIInfoProviderpublic java.lang.String getInfoText(ShipSystemAPI system, ShipAPI ship)
ShipSystemStatsScriptAdvancedgetInfoText in interface ShipSystemStatsScriptAdvancedgetInfoText in class BaseShipSystemScriptpublic boolean isUsable(ShipSystemAPI system, ShipAPI ship)
isUsable in interface ShipSystemStatsScriptAdvancedisUsable in class BaseShipSystemScriptpublic float getMaxRange(ShipAPI ship)
getMaxRange in interface DroneStrikeStatsAIInfoProviderpublic boolean dronesUsefulAsPD()
dronesUsefulAsPD in interface DroneStrikeStatsAIInfoProviderpublic boolean droneStrikeUsefulVsFighters()
droneStrikeUsefulVsFighters in interface DroneStrikeStatsAIInfoProviderpublic int getMaxDrones()
getMaxDrones in interface DroneStrikeStatsAIInfoProviderpublic float getMissileSpeed()
getMissileSpeed in interface DroneStrikeStatsAIInfoProviderpublic void setForceNextTarget(ShipAPI forceNextTarget)
setForceNextTarget in interface DroneStrikeStatsAIInfoProviderpublic ShipAPI getForceNextTarget()