Package mindustry.ui.fragments
Enum Class HintsFragment.DefaultHint
- All Implemented Interfaces:
Serializable
,Comparable<HintsFragment.DefaultHint>
,Constable
,HintsFragment.Hint
- Enclosing class:
- HintsFragment
public static enum HintsFragment.DefaultHint
extends Enum<HintsFragment.DefaultHint>
implements HintsFragment.Hint
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Fields inherited from interface mindustry.ui.fragments.HintsFragment.Hint
visibleAll, visibleDesktop, visibleMobile
-
Method Summary
Modifier and TypeMethodDescriptionboolean
complete()
void
finish()
finishes the hint - it should not be shown againboolean
finished()
int
order()
boolean
show()
text()
Displayed text.boolean
valid()
static HintsFragment.DefaultHint
Returns the enum constant of this class with the specified name.static HintsFragment.DefaultHint[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from interface mindustry.ui.fragments.HintsFragment.Hint
name
-
Enum Constant Details
-
desktopMove
-
zoom
-
breaking
-
desktopShoot
-
depositItems
-
desktopPause
-
unitControl
-
unitSelectControl
-
respawn
-
launch
-
schematicSelect
-
conveyorPathfind
-
boost
-
blockInfo
-
derelict
-
payloadPickup
-
payloadDrop
-
waveFire
-
generator
-
rebuildSelect
-
guardian
-
factoryControl
-
coreUpgrade
-
presetLaunch
-
presetDifficulty
-
coreIncinerate
-
-
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
-
finished
public boolean finished()- Specified by:
finished
in interfaceHintsFragment.Hint
- Returns:
- whether the hint is finished - if true, it should not be shown again
-
finish
public void finish()Description copied from interface:HintsFragment.Hint
finishes the hint - it should not be shown again- Specified by:
finish
in interfaceHintsFragment.Hint
-
text
Description copied from interface:HintsFragment.Hint
Displayed text.- Specified by:
text
in interfaceHintsFragment.Hint
-
complete
public boolean complete()- Specified by:
complete
in interfaceHintsFragment.Hint
- Returns:
- true if hint objective is complete
-
show
public boolean show()- Specified by:
show
in interfaceHintsFragment.Hint
- Returns:
- whether the hint is ready to be shown
-
order
public int order()- Specified by:
order
in interfaceHintsFragment.Hint
- Returns:
- order integer, determines priority
-
valid
public boolean valid()- Specified by:
valid
in interfaceHintsFragment.Hint
- Returns:
- whether this hint should be processed, used for platform splits
-