Package mindustry.game
Class MapObjectives.LineMarker
java.lang.Object
mindustry.game.MapObjectives.ObjectiveMarker
mindustry.game.MapObjectives.PosMarker
mindustry.game.MapObjectives.LineMarker
- All Implemented Interfaces:
arc.util.serialization.Json.JsonSerializable
- 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
pos -
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) voiddrawLight(float scaleFactor) Methods inherited from class mindustry.game.MapObjectives.ObjectiveMarker
fetchText, read, setText, setTexture, typeName, write
-
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
-
drawLight
public void drawLight(float scaleFactor) - Overrides:
drawLightin classMapObjectives.ObjectiveMarker
-
control
Description copied from class:MapObjectives.ObjectiveMarkerControl marker with world processor code. Ignores NaN (null) values.- Overrides:
controlin classMapObjectives.PosMarker
-