Class MapObjectives.ObjectiveMarker

java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
All Implemented Interfaces:
arc.util.serialization.Json.JsonSerializable, Serializable
Direct Known Subclasses:
MapObjectives.PosMarker, MapObjectives.QuadMarker
Enclosing class:
MapObjectives

public abstract static class MapObjectives.ObjectiveMarker extends Object implements arc.util.serialization.Json.JsonSerializable, Serializable
Marker used for drawing various content to indicate something along with an objective. Mostly used as UI overlay.
See Also:
  • Field Details

    • arrayIndex

      public transient int arrayIndex
      Internal use only! Do not access.
    • world

      public boolean world
      Whether to display marker in the world.
    • minimap

      public boolean minimap
      Whether to display marker on minimap.
    • autoscale

      public boolean autoscale
      Whether to scale marker corresponding to player's zoom level.
    • drawLayer

      protected float drawLayer
      On which z-sorting layer is marker drawn.
  • Constructor Details

    • ObjectiveMarker

      public ObjectiveMarker()
  • Method Details

    • draw

      public void draw(float scaleFactor)
    • control

      public void control(LMarkerControl type, double p1, double p2, double p3)
      Control marker with world processor code. Ignores NaN (null) values.
    • setText

      public void setText(String text, boolean fetch)
    • setTexture

      public void setTexture(Object texture)
    • typeName

      public String typeName()
      Returns:
      The localized type-name of this objective, defaulting to the class simple name without the "Marker" prefix.
    • fetchText

      public static String fetchText(String text)
    • write

      public void write(arc.util.serialization.Json json)
      Specified by:
      write in interface arc.util.serialization.Json.JsonSerializable
    • read

      public void read(arc.util.serialization.Json json, arc.util.serialization.JsonValue jsonData)
      Specified by:
      read in interface arc.util.serialization.Json.JsonSerializable