public class MoteControlScript extends BaseShipSystemScript
| Modifier and Type | Class and Description |
|---|---|
static class |
MoteControlScript.MoteData |
static class |
MoteControlScript.SharedMoteAIData |
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData| Modifier and Type | Field and Description |
|---|---|
static float |
ANTI_FIGHTER_DAMAGE |
static float |
ANTI_FIGHTER_DAMAGE_HF |
protected WeaponSlotAPI |
attractor |
static float |
ATTRACTOR_DURATION |
static float |
ATTRACTOR_DURATION_LOCK |
protected IntervalUtil |
attractorParticleInterval |
protected boolean |
findNewTargetOnUse |
protected IntervalUtil |
launchInterval |
protected WeightedRandomPicker<WeaponSlotAPI> |
launchSlots |
protected static float |
MAX_ATTRACTOR_RANGE |
static float |
MAX_DIST_FROM_ATTRACTOR_TO_ENGAGE_AS_PD |
static float |
MAX_DIST_FROM_SOURCE_TO_ENGAGE_AS_PD |
static int |
MAX_MOTES |
static int |
MAX_MOTES_HF |
static java.util.Map<java.lang.String,MoteControlScript.MoteData> |
MOTE_DATA |
static java.lang.String |
MOTELAUNCHER |
static java.lang.String |
MOTELAUNCHER_HF |
| Constructor and Description |
|---|
MoteControlScript() |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(MutableShipStatsAPI stats,
java.lang.String id,
ShipSystemStatsScript.State state,
float effectLevel) |
void |
calculateTargetData(ShipAPI ship) |
protected EveryFrameCombatPlugin |
createTargetJitterPlugin(ShipAPI target,
float in,
float out,
java.awt.Color jitterColor) |
protected void |
findSlots(ShipAPI ship) |
static float |
getAntiFighterDamage(ShipAPI ship) |
static java.awt.Color |
getEMPColor(ShipAPI ship) |
static java.lang.String |
getImpactSoundId(ShipAPI ship) |
java.lang.String |
getInfoText(ShipSystemAPI system,
ShipAPI ship)
If null, uses "READY" and "ACTIVE" as appropritate in the ship info widget.
|
static java.awt.Color |
getJitterColor(ShipAPI ship) |
ShipAPI |
getLockTarget(ShipAPI from,
org.lwjgl.util.vector.Vector2f loc) |
static java.lang.String |
getLoopSound(ShipAPI ship) |
static int |
getMaxMotes(ShipAPI ship) |
static float |
getRange(ShipAPI ship) |
static MoteControlScript.SharedMoteAIData |
getSharedData(ShipAPI source) |
ShipSystemStatsScript.StatusData |
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 java.lang.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 |
spawnAttractorParticles(ShipAPI ship) |
void |
unapply(MutableShipStatsAPI stats,
java.lang.String id) |
getActiveOverride, getDisplayNameOverride, getInOverride, getOutOverride, getRegenOverride, getUsesOverrideprotected static float MAX_ATTRACTOR_RANGE
public static float MAX_DIST_FROM_SOURCE_TO_ENGAGE_AS_PD
public static float MAX_DIST_FROM_ATTRACTOR_TO_ENGAGE_AS_PD
public static int MAX_MOTES
public static int MAX_MOTES_HF
public static float ANTI_FIGHTER_DAMAGE
public static float ANTI_FIGHTER_DAMAGE_HF
public static float ATTRACTOR_DURATION_LOCK
public static float ATTRACTOR_DURATION
public static java.util.Map<java.lang.String,MoteControlScript.MoteData> MOTE_DATA
public static java.lang.String MOTELAUNCHER
public static java.lang.String MOTELAUNCHER_HF
protected IntervalUtil launchInterval
protected IntervalUtil attractorParticleInterval
protected WeightedRandomPicker<WeaponSlotAPI> launchSlots
protected WeaponSlotAPI attractor
protected boolean findNewTargetOnUse
public MoteControlScript()
public static boolean isHighFrequency(ShipAPI ship)
public static java.lang.String getWeaponId(ShipAPI ship)
public static float getAntiFighterDamage(ShipAPI ship)
public static java.lang.String getImpactSoundId(ShipAPI ship)
public static java.awt.Color getJitterColor(ShipAPI ship)
public static java.awt.Color getEMPColor(ShipAPI ship)
public static int getMaxMotes(ShipAPI ship)
public static java.lang.String getLoopSound(ShipAPI ship)
public static MoteControlScript.SharedMoteAIData getSharedData(ShipAPI source)
public void apply(MutableShipStatsAPI stats, java.lang.String id, ShipSystemStatsScript.State state, float effectLevel)
apply in interface ShipSystemStatsScriptapply in class BaseShipSystemScriptprotected void spawnAttractorParticles(ShipAPI ship)
public void unapply(MutableShipStatsAPI stats, java.lang.String id)
unapply in interface ShipSystemStatsScriptunapply in class BaseShipSystemScriptpublic ShipSystemStatsScript.StatusData getStatusData(int index, ShipSystemStatsScript.State state, float effectLevel)
getStatusData in interface ShipSystemStatsScriptgetStatusData in class BaseShipSystemScriptpublic void calculateTargetData(ShipAPI ship)
public 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 org.lwjgl.util.vector.Vector2f getTargetedLocation(ShipAPI from)
public org.lwjgl.util.vector.Vector2f getTargetLoc(ShipAPI from)
public boolean isMouseInRange(ShipAPI from)
public boolean isLocationInRange(ShipAPI from, org.lwjgl.util.vector.Vector2f loc)
public ShipAPI getLockTarget(ShipAPI from, org.lwjgl.util.vector.Vector2f loc)
protected EveryFrameCombatPlugin createTargetJitterPlugin(ShipAPI target, float in, float out, java.awt.Color jitterColor)