Starsector API
Loading...
Searching...
No Matches
ProjectileSpecAPI.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.MutableShipStatsAPI;
10import com.fs.starfarer.api.combat.OnFireEffectPlugin;
11import com.fs.starfarer.api.combat.OnHitEffectPlugin;
12import com.fs.starfarer.api.combat.WeaponAPI;
13
14public interface ProjectileSpecAPI {
16 void setOnHitClassName(String effectClassName);
17 OnHitEffectPlugin getOnHitEffect();
18 String getId();
20 void setGlowRadius(float glowRadius);
21 Color getGlowColor();
22 void setGlowColor(Color glowColor);
24 void setHitGlowRadius(float hitGlowSize);
25 String getFringeTex();
26 void setFringeTex(String fringeTex);
27 String getCoreTex();
28 void setCoreTex(String coreTex);
30 void setFringeColor(Color fringeColor);
31 Color getCoreColor();
32 void setCoreColor(Color coreColor);
33 boolean isDarkCore();
34 void setDarkCore(boolean darkCore);
36 void setBulletSpriteName(String bulletSpriteName);
38 void setPixelsPerTexel(float pixelsPerTexel);
40 void setTextureScrollSpeed(float textureScrollSpeed);
41 float getLength();
42 void setLength(float length);
43 float getMaxRange();
44 void setMaxRange(float maxRange);
45
52 float getMoveSpeed(MutableShipStatsAPI shipStats, WeaponAPI weapon);
53 void setMoveSpeed(float moveSpeed);
54 float getFadeTime();
55 void setFadeTime(float fadeTime);
57 void setImpactStrength(float impactMass);
58 CollisionClass getCollisionClass();
59 void setCollisionClass(CollisionClass collisionClass);
61 void setCollisionClassIfByFighter(CollisionClass collisionClassIfByFighter);
62 DamageAPI getDamage();
63 float getWidth();
64 void setWidth(float width);
67 float getMaxHealth();
68 void setMaxHealth(float maxHealth);
70 void setPassThroughMissiles(boolean passThroughMissiles);
71 JSONObject getBehaviorJSON();
73 void setDarkCoreIter(int darkCoreIter);
75 void setDarkFringeIter(int darkFringeIter);
77 void setCoreWidthMult(float coreWidthMult);
78 void setOnFireClassName(String onFireClassName);
80 OnFireEffectPlugin getOnFireEffect();
81 void setNoNonShieldImpactSounds(boolean noNonShieldImpactSounds);
82 void setNoImpactSounds(boolean noImpactSounds);
84 void setNoShieldImpactSounds(boolean noShieldImpactSounds);
88 void setPassThroughFighters(boolean passThroughFighters);
90 void setPassThroughFightersOnlyWhenDestroyed(boolean passThroughFightersOnlyWhenDestroyed);
92 void setApplyOnHitEffectWhenPassThrough(boolean applyOnHitEffectWhenPassThrough);
94
95}
void setOnHitClassName(String effectClassName)
void setPassThroughMissiles(boolean passThroughMissiles)
void setCollisionClassIfByFighter(CollisionClass collisionClassIfByFighter)
void setCoreWidthMult(float coreWidthMult)
void setCollisionClass(CollisionClass collisionClass)
void setPixelsPerTexel(float pixelsPerTexel)
void setBulletSpriteName(String bulletSpriteName)
void setSpawnType(ProjectileSpawnType style)
void setNoNonShieldImpactSounds(boolean noNonShieldImpactSounds)
void setPassThroughFighters(boolean passThroughFighters)
void setNoImpactSounds(boolean noImpactSounds)
void setNoShieldImpactSounds(boolean noShieldImpactSounds)
void setOnFireClassName(String onFireClassName)
void setPassThroughFightersOnlyWhenDestroyed(boolean passThroughFightersOnlyWhenDestroyed)
float getMoveSpeed(MutableShipStatsAPI shipStats, WeaponAPI weapon)
void setApplyOnHitEffectWhenPassThrough(boolean applyOnHitEffectWhenPassThrough)
void setTextureScrollSpeed(float textureScrollSpeed)