Class WorldMarkers.PlayerHomingPoint
java.lang.Object
zombie.iso.WorldMarkers.PlayerHomingPoint
-
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)
-