Package com.fs.starfarer.api.impl.combat
Class MoteControlScript
java.lang.Object
com.fs.starfarer.api.impl.combat.BaseShipSystemScript
com.fs.starfarer.api.impl.combat.MoteControlScript
- All Implemented Interfaces:
ShipSystemStatsScript
,ShipSystemStatsScriptAdvanced
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.fs.starfarer.api.plugins.ShipSystemStatsScript
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic float
static float
protected WeaponSlotAPI
static float
static float
protected IntervalUtil
protected boolean
protected IntervalUtil
protected WeightedRandomPicker<WeaponSlotAPI>
protected static float
static float
static float
static int
static int
static Map<String,
MoteControlScript.MoteData> static String
static String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) void
calculateTargetData
(ShipAPI ship) protected EveryFrameCombatPlugin
createTargetJitterPlugin
(ShipAPI target, float in, float out, Color jitterColor) protected void
static float
getAntiFighterDamage
(ShipAPI ship) static Color
getEMPColor
(ShipAPI ship) static String
getImpactSoundId
(ShipAPI ship) getInfoText
(ShipSystemAPI system, ShipAPI ship) If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.static Color
getJitterColor
(ShipAPI ship) getLockTarget
(ShipAPI from, org.lwjgl.util.vector.Vector2f loc) static String
getLoopSound
(ShipAPI ship) static int
getMaxMotes
(ShipAPI ship) static float
getSharedData
(ShipAPI source) getStatusData
(int index, ShipSystemStatsScript.State state, float effectLevel) org.lwjgl.util.vector.Vector2f
getTargetedLocation
(ShipAPI from) org.lwjgl.util.vector.Vector2f
getTargetLoc
(ShipAPI from) static String
getWeaponId
(ShipAPI ship) static boolean
isHighFrequency
(ShipAPI ship) boolean
isLocationInRange
(ShipAPI from, org.lwjgl.util.vector.Vector2f loc) boolean
isMouseInRange
(ShipAPI from) boolean
isUsable
(ShipSystemAPI system, ShipAPI ship) protected void
void
unapply
(MutableShipStatsAPI stats, String id) Methods inherited from class com.fs.starfarer.api.impl.combat.BaseShipSystemScript
getActiveOverride, getDisplayNameOverride, getInOverride, getOutOverride, getRegenOverride, getUsesOverride
-
Field Details
-
MAX_ATTRACTOR_RANGE
protected static float MAX_ATTRACTOR_RANGE -
MAX_DIST_FROM_SOURCE_TO_ENGAGE_AS_PD
public static float MAX_DIST_FROM_SOURCE_TO_ENGAGE_AS_PD -
MAX_DIST_FROM_ATTRACTOR_TO_ENGAGE_AS_PD
public static float MAX_DIST_FROM_ATTRACTOR_TO_ENGAGE_AS_PD -
MAX_MOTES
public static int MAX_MOTES -
MAX_MOTES_HF
public static int MAX_MOTES_HF -
ANTI_FIGHTER_DAMAGE
public static float ANTI_FIGHTER_DAMAGE -
ANTI_FIGHTER_DAMAGE_HF
public static float ANTI_FIGHTER_DAMAGE_HF -
ATTRACTOR_DURATION_LOCK
public static float ATTRACTOR_DURATION_LOCK -
ATTRACTOR_DURATION
public static float ATTRACTOR_DURATION -
MOTE_DATA
-
MOTELAUNCHER
-
MOTELAUNCHER_HF
-
launchInterval
-
attractorParticleInterval
-
launchSlots
-
attractor
-
findNewTargetOnUse
protected boolean findNewTargetOnUse
-
-
Constructor Details
-
MoteControlScript
public MoteControlScript()
-
-
Method Details
-
isHighFrequency
-
getWeaponId
-
getAntiFighterDamage
-
getImpactSoundId
-
getJitterColor
-
getEMPColor
-
getMaxMotes
-
getLoopSound
-
findSlots
-
apply
public void apply(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) - Specified by:
apply
in interfaceShipSystemStatsScript
- Overrides:
apply
in classBaseShipSystemScript
-
spawnAttractorParticles
-
unapply
- Specified by:
unapply
in interfaceShipSystemStatsScript
- Overrides:
unapply
in classBaseShipSystemScript
-
getStatusData
public ShipSystemStatsScript.StatusData getStatusData(int index, ShipSystemStatsScript.State state, float effectLevel) - Specified by:
getStatusData
in interfaceShipSystemStatsScript
- Overrides:
getStatusData
in classBaseShipSystemScript
-
calculateTargetData
-
getInfoText
Description copied from interface:ShipSystemStatsScriptAdvanced
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.- Specified by:
getInfoText
in interfaceShipSystemStatsScriptAdvanced
- Overrides:
getInfoText
in classBaseShipSystemScript
- Returns:
-
isUsable
- Specified by:
isUsable
in interfaceShipSystemStatsScriptAdvanced
- Overrides:
isUsable
in classBaseShipSystemScript
-
getTargetedLocation
-
getTargetLoc
-
isMouseInRange
-
isLocationInRange
-
getLockTarget
-
getRange
-
createTargetJitterPlugin
protected EveryFrameCombatPlugin createTargetJitterPlugin(ShipAPI target, float in, float out, Color jitterColor)
-