Package mindustry.game
Class MapObjectives.ShapeMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.ShapeMarker
- All Implemented Interfaces:
arc.util.serialization.Json.JsonSerializable
- Enclosing class:
- MapObjectives
Displays a shape with an outline and color.
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.ColorfloatbooleanbooleanfloatfloatintfloatfloatFields inherited from class mindustry.game.MapObjectives.PosMarker
pos -
Constructor Summary
ConstructorsConstructorDescriptionShapeMarker(float x, float y) ShapeMarker(float x, float y, float radius, float rotation) -
Method Summary
Modifier and TypeMethodDescriptionvoidcontrol(LMarkerControl type, double p1, double p2, double p3) Control marker with world processor code.voiddraw(float scaleFactor) Methods inherited from class mindustry.game.MapObjectives.ObjectiveMarker
drawLight, fetchText, read, setText, setTexture, typeName, write
-
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:
drawin classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarkerControl marker with world processor code. Ignores NaN (null) values.- Overrides:
controlin classMapObjectives.PosMarker
-