Package com.fs.starfarer.api.campaign
Enum Class RepLevel
- All Implemented Interfaces:
Serializable
,Comparable<RepLevel>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic RepLevel
getLevelFor
(float r) float
getMax()
Inclusive.float
getMin()
Not inclusive.static int
getRepInt
(float f) static float
getT1()
static float
getT2()
static float
getT3()
static float
getT4()
boolean
boolean
boolean
boolean
boolean
static RepLevel
Returns the enum constant of this class with the specified name.static RepLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
VENGEFUL
-
HOSTILE
-
INHOSPITABLE
-
SUSPICIOUS
-
NEUTRAL
-
FAVORABLE
-
WELCOMING
-
FRIENDLY
-
COOPERATIVE
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getDisplayName
-
getOneBetter
-
getOneWorse
-
getMin
public float getMin()Not inclusive.- Returns:
-
getMax
public float getMax()Inclusive.- Returns:
-
isAtWorst
-
isAtBest
-
isNeutral
public boolean isNeutral() -
isPositive
public boolean isPositive() -
isNegative
public boolean isNegative() -
getLevelFor
-
getRepInt
public static int getRepInt(float f) -
getT1
public static float getT1() -
getT2
public static float getT2() -
getT3
public static float getT3() -
getT4
public static float getT4()
-