public static class DefaultFleetInflater.AvailableWeaponImpl extends java.lang.Object implements AutofitPlugin.AvailableWeapon
| Modifier and Type | Field and Description |
|---|---|
protected float |
cachedOPCost |
protected int |
quantity |
protected MutableShipStatsAPI |
savedCostStats |
protected WeaponSpecAPI |
spec |
| Constructor and Description |
|---|
AvailableWeaponImpl(WeaponSpecAPI spec,
int quantity) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
float |
getOPCost(MutableCharacterStatsAPI stats,
MutableShipStatsAPI shipStats) |
float |
getPrice() |
int |
getQuantity() |
CargoAPI |
getSource() |
WeaponSpecAPI |
getSpec() |
SubmarketAPI |
getSubmarket() |
void |
setQuantity(int quantity) |
protected WeaponSpecAPI spec
protected int quantity
protected MutableShipStatsAPI savedCostStats
protected float cachedOPCost
public AvailableWeaponImpl(WeaponSpecAPI spec, int quantity)
public java.lang.String getId()
getId in interface AutofitPlugin.AvailableWeaponpublic float getPrice()
getPrice in interface AutofitPlugin.AvailableWeaponpublic int getQuantity()
getQuantity in interface AutofitPlugin.AvailableWeaponpublic CargoAPI getSource()
getSource in interface AutofitPlugin.AvailableWeaponpublic SubmarketAPI getSubmarket()
getSubmarket in interface AutofitPlugin.AvailableWeaponpublic WeaponSpecAPI getSpec()
getSpec in interface AutofitPlugin.AvailableWeaponpublic void setQuantity(int quantity)
setQuantity in interface AutofitPlugin.AvailableWeaponpublic float getOPCost(MutableCharacterStatsAPI stats, MutableShipStatsAPI shipStats)
getOPCost in interface AutofitPlugin.AvailableWeapon