Class MapObjectives.ObjectiveMarker

java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
Direct Known Subclasses:
MapObjectives.MinimapMarker, MapObjectives.ShapeMarker, MapObjectives.ShapeTextMarker, MapObjectives.TextMarker
Enclosing class:
MapObjectives

public abstract static class MapObjectives.ObjectiveMarker extends Object
Marker used for drawing UI to indicate something along with an objective.
  • Field Details

    • wasAdded

      public transient boolean wasAdded
      Makes sure markers are only added once.
  • Constructor Details

    • ObjectiveMarker

      public ObjectiveMarker()
  • Method Details

    • draw

      public void draw()
      Called in the overlay draw layer.
    • drawMinimap

      public void drawMinimap(MinimapRenderer minimap)
      Called in the small and large map.
    • added

      public void added()
      Add any UI elements necessary.
    • removed

      public void removed()
      Remove any UI elements, if necessary.
    • 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)