Package mindustry.game
Class MapObjectives.ObjectiveMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
- Direct Known Subclasses:
MapObjectives.MinimapMarker
,MapObjectives.ShapeMarker
,MapObjectives.ShapeTextMarker
,MapObjectives.TextMarker
- Enclosing class:
- MapObjectives
Marker used for drawing UI to indicate something along with an objective.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
added()
Add any UI elements necessary.void
draw()
Called in the overlay draw layer.void
drawMinimap
(MinimapRenderer minimap) Called in the small and large map.static String
void
removed()
Remove any UI elements, if necessary.typeName()
-
Field Details
-
wasAdded
public transient boolean wasAddedMakes sure markers are only added once.
-
-
Constructor Details
-
ObjectiveMarker
public ObjectiveMarker()
-
-
Method Details
-
draw
public void draw()Called in the overlay draw layer. -
drawMinimap
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
- Returns:
- The localized type-name of this objective, defaulting to the class simple name without the "Marker" prefix.
-
fetchText
-