Package mindustry.game
Class MapObjectives.ObjectiveMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
- Direct Known Subclasses:
MapObjectives.PosMarker,MapObjectives.QuadMarker
- Enclosing class:
- MapObjectives
Marker used for drawing various content to indicate something along with an objective. Mostly used as UI overlay.
-
Field Summary
FieldsModifier and TypeFieldDescriptionintInternal use only! Do not access.booleanWhether to scale marker corresponding to player's zoom level.protected floatOn which z-sorting layer is marker drawn.booleanWhether to display marker on minimap.booleanWhether to display marker in the world. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontrol(LMarkerControl type, double p1, double p2, double p3) Control marker with world processor code.voiddraw(float scaleFactor) static StringvoidvoidsetTexture(String textureName) typeName()
-
Field Details
-
arrayIndex
public transient int arrayIndexInternal use only! Do not access. -
world
public boolean worldWhether to display marker in the world. -
minimap
public boolean minimapWhether to display marker on minimap. -
autoscale
public boolean autoscaleWhether to scale marker corresponding to player's zoom level. -
drawLayer
protected float drawLayerOn which z-sorting layer is marker drawn.
-
-
Constructor Details
-
ObjectiveMarker
public ObjectiveMarker()
-
-
Method Details
-
draw
public void draw(float scaleFactor) -
control
Control marker with world processor code. Ignores NaN (null) values. -
setText
-
setTexture
-
typeName
- Returns:
- The localized type-name of this objective, defaulting to the class simple name without the "Marker" prefix.
-
fetchText
-