Starsector API
Loading...
Searching...
No Matches
MissileSpecAPI.java
Go to the documentation of this file.
1package com.fs.starfarer.api.loading;
2
3import java.awt.Color;
4
5import org.json.JSONObject;
6
7import com.fs.starfarer.api.combat.CollisionClass;
8import com.fs.starfarer.api.combat.DamageAPI;
9import com.fs.starfarer.api.combat.OnFireEffectPlugin;
10import com.fs.starfarer.api.combat.OnHitEffectPlugin;
11import com.fs.starfarer.api.combat.ShipHullSpecAPI;
12
13public interface MissileSpecAPI {
14
16 void setOnHitClassName(String effectClassName);
17 OnHitEffectPlugin getOnHitEffect();
19 void setArmingTime(float armingTime);
21 void setFlameoutTime(float flameoutTime);
23 void setNoEngineGlowTime(float noEngineGlowTime);
24 float getFadeTime();
25 void setFadeTime(float fadeTime);
27 void setAfterFlameoutCollisionClass(CollisionClass afterFlameoutCollisionClass);
30 void setGlowRadius(float glowRadius);
31 void setExplosionColor(Color explosionColor);
33 void setExplosionRadius(float explosionRadius);
34 Color getGlowColor();
35 void setGlowColor(Color glowColor);
37 void setGlowSpriteName(String glowSpriteName);
38 void setMaxFlightTime(float maxFlightTime);
40 ShipHullSpecAPI getHullSpec();
41 DamageAPI getDamage();
43 void setLaunchSpeed(float launchSpeed);
45 void setImpactStrength(float impactStrength);
50 JSONObject getBehaviorJSON();
52 void setOnFireClassName(String onFireClassName);
53 OnFireEffectPlugin getOnFireEffect();
55 void setDudProbabilityOnFlameout(float dudProbabilityOnFlameout);
57 void setUseHitGlowWhenDestroyed(boolean useHitGlowWhenDestroyed);
59 void setFizzleOnReachingWeaponRange(boolean fizzleOnReachingWeaponRange);
61 void setUseHitGlowWhenDealingDamage(boolean useHitGlowWhenDealingDamage);
63 void setNoCollisionWhileFading(boolean noCollisionWhileFading);
65 void setReduceDamageWhileFading(boolean reduceDamageWhileFading);
67 void setAlwaysAccelerate(boolean alwaysAccelerate);
69 void setUseProjectileRangeCalculation(boolean useProjectileRangeCalculation);
71 void setRenderTargetIndicator(boolean renderTargetIndicator);
73 void setNoDebrisWhenDestroyed(boolean noDebrisWhenDestroyed);
75 void setDestroyedExplosionColor(Color destroyedExplosionColor);
78 void setPassThroughMissiles(boolean passThroughMissiles);
80 void setPassThroughFighters(boolean passThroughFighters);
82 void setApplyOnHitEffectWhenPassThrough(boolean applyOnHitEffectWhenPassThrough);
84 void setPassThroughFightersOnlyWhenDestroyed(boolean passThroughFightersOnlyWhenDestroyed);
85 String getTypeString();
87
88}
void setAfterFlameoutCollisionClass(CollisionClass afterFlameoutCollisionClass)
void setPassThroughMissiles(boolean passThroughMissiles)
void setDestroyedExplosionColor(Color destroyedExplosionColor)
void setOnFireClassName(String onFireClassName)
void setUseProjectileRangeCalculation(boolean useProjectileRangeCalculation)
void setMaxFlightTime(float maxFlightTime)
void setExplosionColor(Color explosionColor)
void setFlameoutTime(float flameoutTime)
void setImpactStrength(float impactStrength)
void setPassThroughFightersOnlyWhenDestroyed(boolean passThroughFightersOnlyWhenDestroyed)
void setReduceDamageWhileFading(boolean reduceDamageWhileFading)
void setRenderTargetIndicator(boolean renderTargetIndicator)
DamagingExplosionSpec getExplosionSpec()
void setNoCollisionWhileFading(boolean noCollisionWhileFading)
void setDudProbabilityOnFlameout(float dudProbabilityOnFlameout)
void setFizzleOnReachingWeaponRange(boolean fizzleOnReachingWeaponRange)
void setUseHitGlowWhenDealingDamage(boolean useHitGlowWhenDealingDamage)
void setOnHitClassName(String effectClassName)
void setUseHitGlowWhenDestroyed(boolean useHitGlowWhenDestroyed)
void setApplyOnHitEffectWhenPassThrough(boolean applyOnHitEffectWhenPassThrough)
void setNoDebrisWhenDestroyed(boolean noDebrisWhenDestroyed)
void setPassThroughFighters(boolean passThroughFighters)
void setAlwaysAccelerate(boolean alwaysAccelerate)
void setGlowSpriteName(String glowSpriteName)
void setExplosionRadius(float explosionRadius)
void setExplosionSpec(DamagingExplosionSpec explosionSpec)
void setNoEngineGlowTime(float noEngineGlowTime)