Class DropGroupRow
java.lang.Object
com.fs.starfarer.api.impl.campaign.procgen.DropGroupRow
- All Implemented Interfaces:
Cloneable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDropGroupRow
(String commodity, String group, float freq) DropGroupRow
(org.json.JSONObject row) -
Method Summary
Modifier and TypeMethodDescriptionclone()
float
float
getFreq()
getGroup()
static WeightedRandomPicker<DropGroupRow>
getSpec()
boolean
boolean
boolean
boolean
boolean
boolean
isWeapon()
resolveToSpecificItem
(Random random) void
setCommodity
(String commodity) void
setFreq
(float freq) void
toString()
-
Field Details
-
NOTHING
- See Also:
-
WEAPON_PREFIX
- See Also:
-
FIGHTER_PREFIX
- See Also:
-
ITEM_PREFIX
- See Also:
-
-
Constructor Details
-
DropGroupRow
public DropGroupRow(org.json.JSONObject row) throws org.json.JSONException - Throws:
org.json.JSONException
-
DropGroupRow
-
-
Method Details
-
clone
-
getSpec
-
getWeaponSpec
-
getBaseUnitValue
public float getBaseUnitValue() -
getFighterWingSpec
-
isCommodity
public boolean isCommodity() -
isWeapon
public boolean isWeapon() -
getWeaponId
-
getSpecialItemId
-
getSpecialItemData
-
getSpecialItemSpec
-
isFighterWing
public boolean isFighterWing() -
isSpecialItem
public boolean isSpecialItem() -
getFighterWingId
-
isMultiValued
public boolean isMultiValued() -
isNothing
public boolean isNothing() -
getCommodity
-
setCommodity
-
getGroup
-
setGroup
-
getFreq
public float getFreq() -
setFreq
public void setFreq(float freq) -
getPicker
-
resolveToSpecificItem
-
toString
-