Class WarpingSpriteRendererUtilV2
java.lang.Object
com.fs.starfarer.api.impl.combat.dweller.WarpingSpriteRendererUtilV2
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected SpriteAPI
protected WarpingSpriteRendererUtilV2.WSVertex[][]
protected int
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionWarpingSpriteRendererUtilV2
(SpriteAPI sprite, int verticesWide, int verticesTall, float minWarpRadius, float maxWarpRadius, float warpRateMult) -
Method Summary
Modifier and TypeMethodDescriptionvoid
advance
(float amount) int
int
boolean
isMirror()
void
renderAtCenter
(float x, float y) void
setMirror
(boolean mirror) void
setWarpRateMult
(float mult) Only works once, if the original mult was 1f - original rate values are not retained.
-
Field Details
-
verticesWide
protected int verticesWide -
verticesTall
protected int verticesTall -
vertices
-
sprite
-
mirror
protected boolean mirror
-
-
Constructor Details
-
WarpingSpriteRendererUtilV2
public WarpingSpriteRendererUtilV2(SpriteAPI sprite, int verticesWide, int verticesTall, float minWarpRadius, float maxWarpRadius, float warpRateMult)
-
-
Method Details
-
setWarpRateMult
public void setWarpRateMult(float mult) Only works once, if the original mult was 1f - original rate values are not retained.- Parameters:
mult
-
-
advance
public void advance(float amount) -
renderAtCenter
public void renderAtCenter(float x, float y) -
getVerticesWide
public int getVerticesWide() -
getVerticesTall
public int getVerticesTall() -
getSprite
-
isMirror
public boolean isMirror() -
setMirror
public void setMirror(boolean mirror)
-