Package mindustry.ai
Class UnitStance
java.lang.Object
mindustry.ctype.Content
mindustry.ctype.MappableContent
mindustry.ai.UnitStance
- All Implemented Interfaces:
Comparable<Content>
- Direct Known Subclasses:
ItemUnitStance
-
Nested Class Summary
Nested classes/interfaces inherited from class mindustry.ctype.Content
Content.ModContentInfo -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic UnitStanceName of UI icon (from Icon class).arc.struct.BitsIncompatible stances as a bitset for easier operations.arc.struct.Seq<UnitStance>Stances that are mutually exclusive to this stance.arc.input.KeyBindKey to press for this stance.static UnitStancestatic UnitStancestatic UnitStancestatic UnitStancestatic UnitStancebooleanIf true, this stance can be toggled on or off.Fields inherited from class mindustry.ctype.MappableContent
name -
Constructor Summary
ConstructorsConstructorDescriptionUnitStance(String name, String icon, arc.input.KeyBind keybind) UnitStance(String name, String icon, arc.input.KeyBind keybind, boolean toggle) -
Method Summary
Methods inherited from class mindustry.ctype.Content
afterPatch, compareTo, hasErrored, isModded, isVanilla, load, loadIcon, postInit
-
Field Details
-
stop
-
holdFire
-
pursueTarget
-
patrol
-
ram
-
mineAuto
-
icon
Name of UI icon (from Icon class). -
keybind
@Nullable public arc.input.KeyBind keybindKey to press for this stance. -
incompatibleStances
Stances that are mutually exclusive to this stance. This is used for convenience, for writing only! -
incompatibleBits
public arc.struct.Bits incompatibleBitsIncompatible stances as a bitset for easier operations. This is where incompatibility is actually stored. -
toggle
public boolean toggleIf true, this stance can be toggled on or off.
-
-
Constructor Details
-
UnitStance
-
UnitStance
-
-
Method Details
-
init
public void init()Description copied from class:ContentCalled after all content and modules are created. Do not use to load regions or texture data! -
localized
-
getIcon
public arc.scene.style.TextureRegionDrawable getIcon() -
getEmoji
public char getEmoji() -
getContentType
Description copied from class:ContentReturns the type name of this piece of content. This should return the same value for all instances of this content type.- Specified by:
getContentTypein classContent
-
toString
- Overrides:
toStringin classMappableContent
-
loadAll
public static void loadAll()
-