Class DefaultFleetInflater.AvailableWeaponImpl
java.lang.Object
com.fs.starfarer.api.impl.campaign.fleets.DefaultFleetInflater.AvailableWeaponImpl
- All Implemented Interfaces:
AutofitPlugin.AvailableWeapon
- Enclosing class:
- DefaultFleetInflater
public static class DefaultFleetInflater.AvailableWeaponImpl
extends Object
implements AutofitPlugin.AvailableWeapon
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float
protected int
protected MutableShipStatsAPI
protected WeaponSpecAPI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
float
getOPCost
(MutableCharacterStatsAPI stats, MutableShipStatsAPI shipStats) float
getPrice()
int
getSpec()
void
setQuantity
(int quantity)
-
Field Details
-
spec
-
quantity
protected int quantity -
savedCostStats
-
cachedOPCost
protected float cachedOPCost
-
-
Constructor Details
-
AvailableWeaponImpl
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceAutofitPlugin.AvailableWeapon
-
getPrice
public float getPrice()- Specified by:
getPrice
in interfaceAutofitPlugin.AvailableWeapon
-
getQuantity
public int getQuantity()- Specified by:
getQuantity
in interfaceAutofitPlugin.AvailableWeapon
-
getSource
- Specified by:
getSource
in interfaceAutofitPlugin.AvailableWeapon
-
getSubmarket
- Specified by:
getSubmarket
in interfaceAutofitPlugin.AvailableWeapon
-
getSpec
- Specified by:
getSpec
in interfaceAutofitPlugin.AvailableWeapon
-
setQuantity
public void setQuantity(int quantity) - Specified by:
setQuantity
in interfaceAutofitPlugin.AvailableWeapon
-
getOPCost
- Specified by:
getOPCost
in interfaceAutofitPlugin.AvailableWeapon
-