public class CheatPlugin
Constructor and Description |
---|
CheatPlugin() |
Modifier and Type | Method and Description |
---|---|
void |
advance(float amount,
java.util.List<com.fs.starfarer.api.input.InputEventAPI> events)
Called once per frame while the command is active, before
CheatPlugin.advance is called on applicable ships. |
void |
advance(com.fs.starfarer.api.combat.ShipAPI ship,
float amount)
Called once per applicable ship per frame while the command is active.
|
void |
onEnd(com.fs.starfarer.api.combat.CombatEngineAPI engine)
Only called when cheat is toggled off, after
CheatPlugin.unapply is called on all ships. Do not rely on this being called! |
void |
onStart(com.fs.starfarer.api.combat.CombatEngineAPI engine)
Called when cheat is toggled on, before
CheatPlugin.advance is called on any ships. |
boolean |
runWhilePaused()
Whether the
CheatPlugin.advance methods should be called while the game is paused. |
void |
unapply(com.fs.starfarer.api.combat.ShipAPI ship)
Called when cheat is toggled off. Do not rely on this being called!
|
public void advance(float amount, java.util.List<com.fs.starfarer.api.input.InputEventAPI> events)
Called once per frame while the command is active, before CheatPlugin.advance
is called on applicable ships.
CheatPlugin.advance
public void advance(com.fs.starfarer.api.combat.ShipAPI ship, float amount)
Called once per applicable ship per frame while the command is active.
public void unapply(com.fs.starfarer.api.combat.ShipAPI ship)
Called when cheat is toggled off. Do not rely on this being called!
public void onStart(com.fs.starfarer.api.combat.CombatEngineAPI engine)
Called when cheat is toggled on, before CheatPlugin.advance
is called on any ships.
CheatPlugin.advance
public void onEnd(com.fs.starfarer.api.combat.CombatEngineAPI engine)
Only called when cheat is toggled off, after CheatPlugin.unapply
is called on all ships. Do not rely on this being called!
CheatPlugin.unapply
public boolean runWhilePaused()
Whether the CheatPlugin.advance
methods should be called while the game is paused.
CheatPlugin.advance