Class WorldMapStreet
java.lang.Object
zombie.worldMap.streets.WorldMapStreet
-
Constructor Summary
ConstructorsConstructorDescriptionWorldMapStreet(WorldMapStreets owner, String translatedText, StreetPoints points) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddPoint(float x, float y) voidcreateCopy(WorldMapStreets owner) voidcreateHighlightPolygons(gnu.trove.list.array.TFloatArrayList polygon, gnu.trove.list.array.TFloatArrayList triangles) voidcreatePolygon(gnu.trove.list.array.TFloatArrayList points) getAddPointLocation(UIWorldMap ui, float uiX, float uiY, ClosestPoint closestPoint) floatgetClosestPointOn(float worldX, float worldY, ClosestPoint closestPoint) floatgetClosestPointOn(UIWorldMap ui, float uiX, float uiY, ClosestPoint closestPoint) getFont(UIWorldMap ui) doublefloatgetLength(UIWorldMap ui) floatfloatgetMaxX()floatgetMaxY()floatgetMinX()floatgetMinY()intgetOwner()booleangetPointOn(UIWorldMap ui, float t, PointOn pointOn) floatgetPointX(int index) floatgetPointY(int index) intgetWidth()voidinsertPoint(int index, float x, float y) booleanisOnScreen(UIWorldMap ui) intpickPoint(UIWorldMap ui, float uiX, float uiY) voidremovePoint(int index) voidrender(UIWorldMap ui, StreetRenderData renderData) voidrenderIntersections(UIWorldMap ui, float r, float g, float b, float a) voidrenderLines(UIWorldMap ui, float r, float g, float b, float a, int thickness, StreetRenderData renderData) voidvoidvoidsetPoint(int index, float x, float y) voidsetTranslatedText(String text) voidsetWidth(int width) voidtriangulate(gnu.trove.list.array.TFloatArrayList polygon, gnu.trove.list.array.TFloatArrayList triangles)
-
Constructor Details
-
WorldMapStreet
-
-
Method Details
-
getOwner
-
getMinX
public float getMinX() -
getMinY
public float getMinY() -
getMaxX
public float getMaxX() -
getMaxY
public float getMaxY() -
getNumPoints
public int getNumPoints() -
getPointX
public float getPointX(int index) -
getPointY
public float getPointY(int index) -
getLength
-
getLengthSquared
-
addPoint
public void addPoint(float x, float y) -
insertPoint
public void insertPoint(int index, float x, float y) -
removePoint
public void removePoint(int index) -
setPoint
public void setPoint(int index, float x, float y) -
setWidth
public void setWidth(int width) -
getWidth
public int getWidth() -
reverseDirection
public void reverseDirection() -
getTranslatedText
-
setTranslatedText
-
getFont
-
getFontScale
-
getIntersections
-
resetIntersectionRenderFlag
public void resetIntersectionRenderFlag() -
getPointOn
-
render
-
renderLines
public void renderLines(UIWorldMap ui, float r, float g, float b, float a, int thickness, StreetRenderData renderData) -
renderIntersections
-
clipToObscuredCells
public void clipToObscuredCells() -
getClosestPointOn
-
getClosestPointOn
-
pickPoint
-
getAddPointLocation
public ClosestPoint getAddPointLocation(UIWorldMap ui, float uiX, float uiY, ClosestPoint closestPoint) -
createHighlightPolygons
public void createHighlightPolygons(gnu.trove.list.array.TFloatArrayList polygon, gnu.trove.list.array.TFloatArrayList triangles) -
createPolygon
public void createPolygon(gnu.trove.list.array.TFloatArrayList points) -
triangulate
public void triangulate(gnu.trove.list.array.TFloatArrayList polygon, gnu.trove.list.array.TFloatArrayList triangles) -
isOnScreen
-
createCopy
-