1package com.fs.starfarer.api.impl.combat.dweller;
3import java.util.LinkedHashMap;
6import com.fs.starfarer.api.Global;
7import com.fs.starfarer.api.combat.BaseHullMod;
8import com.fs.starfarer.api.combat.CombatEngineAPI;
9import com.fs.starfarer.api.combat.MutableShipStatsAPI;
10import com.fs.starfarer.api.combat.ShipAPI;
11import com.fs.starfarer.api.combat.ShipAPI.HullSize;
21 public static Map<String, DwellerShipCreator>
SHIP_CREATORS =
new LinkedHashMap<>();
45 if (stats ==
null || stats.
getVariant() ==
null)
return;
48 if (creator !=
null) {
55 if (ship ==
null || ship.
getHullSpec() ==
null)
return;
58 if (creator !=
null) {
67 if (ship ==
null || ship.
getHullSpec() ==
null)
return;
70 if (creator !=
null) {
84 if (amount <= 0f || ship ==
null)
return;
89 if (ship ==
null || ship.
getHullSpec() ==
null)
return;
92 if (creator !=
null) {
static CombatEngineAPI getCombatEngine()
void applyEffectsAfterShipCreation(ShipAPI ship, String id)
void advanceInCombat(ShipAPI ship, float amount)
void applyEffectsAfterShipAddedToCombatEngine(ShipAPI ship, String id)
static String INITED_DWELLER_STUFF
DwellerShipCreator getShipCreator(String hullId)
void applyEffectsBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
static Map< String, DwellerShipCreator > SHIP_CREATORS
boolean hasPluginOfClass(Class c)
void addPlugin(EveryFrameCombatPlugin plugin)
ShipVariantAPI getVariant()
ShipHullSpecAPI getHullSpec()
boolean hasTag(String tag)
ShipHullSpecAPI getHullSpec()
void initInCombat(ShipAPI ship)
void initBeforeShipCreation(HullSize hullSize, MutableShipStatsAPI stats, String id)
void initAfterShipCreation(ShipAPI ship, String id)
void initAfterShipAddedToCombatEngine(ShipAPI ship, String id)