Package mindustry.game
Class MapObjectives.ObjectiveMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
- All Implemented Interfaces:
arc.util.serialization.Json.JsonSerializable
- Direct Known Subclasses:
MapObjectives.PosMarker,MapObjectives.QuadMarker
- Enclosing class:
- MapObjectives
public abstract static class MapObjectives.ObjectiveMarker
extends Object
implements arc.util.serialization.Json.JsonSerializable
Marker used for drawing various content to indicate something along with an objective. Mostly used as UI overlay.
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanWhether to scale marker corresponding to player's zoom level.protected floatOn which z-sorting layer is marker drawn.intWhether to use the marker as light.intWhether to display marker on the minimap.intWhether 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) voiddrawLight(float scaleFactor) static Stringvoidread(arc.util.serialization.Json json, arc.util.serialization.JsonValue jsonData) voidvoidsetTexture(Object texture) typeName()voidwrite(arc.util.serialization.Json json)
-
Field Details
-
world
public int worldWhether to display marker in the world. Do not modify directly if added, use control() instead. -
minimap
public int minimapWhether to display marker on the minimap. Do not modify directly if added, use control() instead. -
light
public int lightWhether to use the marker as light. Do not modify directly if added, use control() instead. -
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) -
drawLight
public void drawLight(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.
-
write
public void write(arc.util.serialization.Json json) - Specified by:
writein interfacearc.util.serialization.Json.JsonSerializable
-
read
public void read(arc.util.serialization.Json json, arc.util.serialization.JsonValue jsonData) - Specified by:
readin interfacearc.util.serialization.Json.JsonSerializable
-
fetchText
-