Package mindustry.game
Class MapObjectives.LineMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.LineMarker
- Enclosing class:
- MapObjectives
Displays a line from pos1 to pos2.
-
Field Summary
FieldsModifier and TypeFieldDescriptionarc.graphics.Color
arc.graphics.Color
arc.math.geom.Vec2
boolean
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
ConstructorsConstructorDescriptionLineMarker
(float x1, float y1, float x2, float y2) LineMarker
(float x1, float y1, float x2, float y2, float stroke) -
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
-
endPos
public arc.math.geom.Vec2 endPos -
stroke
public float stroke -
outline
public boolean outline -
color1
public arc.graphics.Color color1 -
color2
public arc.graphics.Color color2
-
-
Constructor Details
-
LineMarker
public LineMarker(float x1, float y1, float x2, float y2, float stroke) -
LineMarker
public LineMarker(float x1, float y1, float x2, float y2) -
LineMarker
public LineMarker()
-
-
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
-