Package com.fs.starfarer.api.impl.combat
Class OrionDeviceStats
java.lang.Object
com.fs.starfarer.api.impl.combat.BaseShipSystemScript
com.fs.starfarer.api.impl.combat.OrionDeviceStats
- All Implemented Interfaces:
ShipSystemStatsScript
,ShipSystemStatsScriptAdvanced
- Direct Known Subclasses:
NovaBurstStats
The way to provide custom params is to have a derived class that sets p = in its constructor.
- Author:
- Alex Copyright 2022 Fractal Softworks, LLC
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
static class
Nested classes/interfaces inherited from interface com.fs.starfarer.api.plugins.ShipSystemStatsScript
ShipSystemStatsScript.State, ShipSystemStatsScript.StatusData
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected Color
protected OrionDeviceStats.OrionDeviceParams
protected OrionDeviceStats.PusherPlateState
protected boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
advanceImpl
(float amount, ShipAPI ship, ShipSystemStatsScript.State state, float effectLevel) void
apply
(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) protected EveryFrameCombatPlugin
createBombImpactPlugin
(ShipAPI ship, WeaponSlotAPI launchSlot, MissileAPI bomb, org.lwjgl.util.vector.Vector2f launchLoc, float launchAngle) boolean
isUsable
(ShipSystemAPI system, ShipAPI ship) protected void
notifySpawnedExplosionParticles
(org.lwjgl.util.vector.Vector2f bombLoc) protected void
void
spawnBomb
(ShipAPI source, WeaponSlotAPI slot) void
unapply
(MutableShipStatsAPI stats, String id) Methods inherited from class com.fs.starfarer.api.impl.combat.BaseShipSystemScript
getActiveOverride, getDisplayNameOverride, getInfoText, getInOverride, getOutOverride, getRegenOverride, getStatusData, getUsesOverride
-
Field Details
-
p
-
pusherState
-
orig
-
wasIdle
protected boolean wasIdle -
deployedBomb
protected boolean deployedBomb
-
-
Constructor Details
-
OrionDeviceStats
public OrionDeviceStats()
-
-
Method Details
-
recolor
-
apply
public void apply(MutableShipStatsAPI stats, String id, ShipSystemStatsScript.State state, float effectLevel) - Specified by:
apply
in interfaceShipSystemStatsScript
- Overrides:
apply
in classBaseShipSystemScript
-
advanceImpl
protected void advanceImpl(float amount, ShipAPI ship, ShipSystemStatsScript.State state, float effectLevel) -
unapply
- Specified by:
unapply
in interfaceShipSystemStatsScript
- Overrides:
unapply
in classBaseShipSystemScript
-
spawnBomb
-
notifySpawnedExplosionParticles
protected void notifySpawnedExplosionParticles(org.lwjgl.util.vector.Vector2f bombLoc) -
createBombImpactPlugin
protected EveryFrameCombatPlugin createBombImpactPlugin(ShipAPI ship, WeaponSlotAPI launchSlot, MissileAPI bomb, org.lwjgl.util.vector.Vector2f launchLoc, float launchAngle) -
isUsable
- Specified by:
isUsable
in interfaceShipSystemStatsScriptAdvanced
- Overrides:
isUsable
in classBaseShipSystemScript
-