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.Colorarc.graphics.Colorarc.math.geom.Vec2booleanfloatFields inherited from class mindustry.game.MapObjectives.PosMarker
posFields 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 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
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:
drawin classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarkerControl marker with world processor code. Ignores NaN (null) values.- Overrides:
controlin classMapObjectives.PosMarker
-