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 UnitStance
Name of UI icon (from Icon class).arc.struct.Bits
Incompatible stances as a bitset for easier operations.arc.struct.Seq<UnitStance>
Stances that are mutually exclusive to this stance.arc.input.KeyBind
Key to press for this stance.static UnitStance
static UnitStance
static UnitStance
static UnitStance
static UnitStance
boolean
If 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
-
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:Content
Called 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:Content
Returns the type name of this piece of content. This should return the same value for all instances of this content type.- Specified by:
getContentType
in classContent
-
toString
- Overrides:
toString
in classMappableContent
-
loadAll
public static void loadAll()
-