Class WorldMarkers.PlayerHomingPoint
java.lang.Object
zombie.iso.WorldMarkers.PlayerHomingPoint
- Enclosing class:
WorldMarkers
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetA()floatThe lerp value for angle adjustment, can be tweaked to be more slowly or faster responding.floatgetB()floatgetG()floatOffset the screen target point, for example to point to top of counter by offsetting Y valuefloatintThe distance in tiles uppon which the pointer will jump to target (if homeOnTarget is enabled, and the target is onScreen)intgetID()floatThe lerp value for jumping to target (homeOneTarget), can be tweaked to be more slowly or faster responding.floatgetR()floatfloatThe base render position for pointers is the center of the screen, adjust this to have it more at feet or head of character for example.floatfloatRender width and height for the pointer texture.floatThe distance in pixels the pointer will hover around the character.floatintgetX()The target position on the map for this pointer.intgetY()booleanisActive()Active can be set to false, the pointer will remain but wont be drawn.booleanWhen enabled will ommit angle calculation, custom angle be set with 'setTargetAngle'.booleanif enabled the pointer will jump to the target when its in view (and within the 'homeOnTargetDist'.booleanvoidremove()When called will remove the pointer next tickvoidsetA(float a) voidsetActive(boolean active) voidsetAngleLerpVal(float angleLerpVal) voidsetB(float b) voidsetCustomTargetAngle(boolean customTargetAngle) voidsetG(float g) voidvoidsetHomeOnOffsetX(float homeOnOffsetX) voidsetHomeOnOffsetY(float homeOnOffsetY) voidsetHomeOnTargetDist(int homeOnTargetDist) voidsetHomeOnTargetInView(boolean homeOnTargetInView) voidsetMovementLerpVal(float movementLerpVal) voidsetR(float r) voidsetRenderHeight(float renderHeight) voidsetRenderOffsetX(float renderOffsetX) voidsetRenderOffsetY(float renderOffsetY) voidsetRenderWidth(float renderWidth) voidsetStickToCharDist(float stickToCharDist) voidvoidsetTargetAngle(float targetAngle) voidsetTexture(String texname) voidsetX(int x) voidsetXOffsetScaled(float offset) voidsetY(int y) voidsetYOffsetScaled(float offset)
-
Constructor Details
-
PlayerHomingPoint
public PlayerHomingPoint(int plrIndex)
-
-
Method Details
-
setTexture
-
remove
public void remove()When called will remove the pointer next tick -
isRemoved
public boolean isRemoved() -
isActive
public boolean isActive()Active can be set to false, the pointer will remain but wont be drawn. -
setActive
public void setActive(boolean active) -
getR
public float getR() -
setR
public void setR(float r) -
getB
public float getB() -
setB
public void setB(float b) -
getG
public float getG() -
setG
public void setG(float g) -
getA
public float getA() -
setA
public void setA(float a) -
getHomeOnTargetDist
public int getHomeOnTargetDist()The distance in tiles uppon which the pointer will jump to target (if homeOnTarget is enabled, and the target is onScreen) -
setHomeOnTargetDist
public void setHomeOnTargetDist(int homeOnTargetDist) -
getID
public int getID() -
getTargetAngle
public float getTargetAngle() -
setTargetAngle
public void setTargetAngle(float targetAngle) -
isCustomTargetAngle
public boolean isCustomTargetAngle()When enabled will ommit angle calculation, custom angle be set with 'setTargetAngle'. -
setCustomTargetAngle
public void setCustomTargetAngle(boolean customTargetAngle) -
getX
public int getX()The target position on the map for this pointer. -
setX
public void setX(int x) -
getY
public int getY() -
setY
public void setY(int y) -
getAngleLerpVal
public float getAngleLerpVal()The lerp value for angle adjustment, can be tweaked to be more slowly or faster responding. -
setAngleLerpVal
public void setAngleLerpVal(float angleLerpVal) -
getMovementLerpVal
public float getMovementLerpVal()The lerp value for jumping to target (homeOneTarget), can be tweaked to be more slowly or faster responding. -
setMovementLerpVal
public void setMovementLerpVal(float movementLerpVal) -
isHomeOnTargetInView
public boolean isHomeOnTargetInView()if enabled the pointer will jump to the target when its in view (and within the 'homeOnTargetDist'. -
setHomeOnTargetInView
public void setHomeOnTargetInView(boolean homeOnTargetInView) -
getRenderWidth
public float getRenderWidth()Render width and height for the pointer texture. -
setRenderWidth
public void setRenderWidth(float renderWidth) -
getRenderHeight
public float getRenderHeight() -
setRenderHeight
public void setRenderHeight(float renderHeight) -
getStickToCharDist
public float getStickToCharDist()The distance in pixels the pointer will hover around the character. -
setStickToCharDist
public void setStickToCharDist(float stickToCharDist) -
getRenderOffsetX
public float getRenderOffsetX()The base render position for pointers is the center of the screen, adjust this to have it more at feet or head of character for example. -
setRenderOffsetX
public void setRenderOffsetX(float renderOffsetX) -
getRenderOffsetY
public float getRenderOffsetY() -
setRenderOffsetY
public void setRenderOffsetY(float renderOffsetY) -
getHomeOnOffsetX
public float getHomeOnOffsetX()Offset the screen target point, for example to point to top of counter by offsetting Y value -
setHomeOnOffsetX
public void setHomeOnOffsetX(float homeOnOffsetX) -
getHomeOnOffsetY
public float getHomeOnOffsetY() -
setHomeOnOffsetY
public void setHomeOnOffsetY(float homeOnOffsetY) -
setTableSurface
public void setTableSurface() -
setHighCounter
public void setHighCounter() -
setYOffsetScaled
public void setYOffsetScaled(float offset) -
setXOffsetScaled
public void setXOffsetScaled(float offset)
-