Package mindustry.game
Class MapObjectives.ShapeMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.ShapeMarker
- Enclosing class:
- MapObjectives
Displays a shape with an outline and color.
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Color
float
boolean
boolean
float
float
int
float
float
Fields inherited from class mindustry.game.MapObjectives.PosMarker
pos
Fields inherited from class mindustry.game.MapObjectives.ObjectiveMarker
arrayIndex, autoscale, drawLayer, minimap, world
-
Constructor Summary
ConstructorsConstructorDescriptionShapeMarker
(float x, float y) ShapeMarker
(float x, float y, float radius, float rotation) -
Method Summary
Modifier and TypeMethodDescriptionvoid
control
(LMarkerControl type, double p1, double p2, double p3) Control marker with world processor code.void
draw
(float scaleFactor) Methods inherited from class mindustry.game.MapObjectives.ObjectiveMarker
fetchText, setText, setTexture, typeName
-
Field Details
-
radius
public float radius -
rotation
public float rotation -
stroke
public float stroke -
startAngle
public float startAngle -
endAngle
public float endAngle -
fill
public boolean fill -
outline
public boolean outline -
sides
public int sides -
color
public arc.graphics.Color color
-
-
Constructor Details
-
ShapeMarker
public ShapeMarker(float x, float y) -
ShapeMarker
public ShapeMarker(float x, float y, float radius, float rotation) -
ShapeMarker
public ShapeMarker()
-
-
Method Details
-
draw
public void draw(float scaleFactor) - Overrides:
draw
in classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarker
Control marker with world processor code. Ignores NaN (null) values.- Overrides:
control
in classMapObjectives.PosMarker
-