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 |
---|
DefaultFleetInflater.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 DefaultFleetInflater.AvailableWeaponImpl(WeaponSpecAPI spec, int quantity)
public java.lang.String getId()
getId
in interface AutofitPlugin.AvailableWeapon
public float getPrice()
getPrice
in interface AutofitPlugin.AvailableWeapon
public int getQuantity()
getQuantity
in interface AutofitPlugin.AvailableWeapon
public CargoAPI getSource()
getSource
in interface AutofitPlugin.AvailableWeapon
public SubmarketAPI getSubmarket()
getSubmarket
in interface AutofitPlugin.AvailableWeapon
public WeaponSpecAPI getSpec()
getSpec
in interface AutofitPlugin.AvailableWeapon
public void setQuantity(int quantity)
setQuantity
in interface AutofitPlugin.AvailableWeapon
public float getOPCost(MutableCharacterStatsAPI stats, MutableShipStatsAPI shipStats)
getOPCost
in interface AutofitPlugin.AvailableWeapon
Copyright © 2013 Fractal Softworks, LLC. All Rights Reserved.