Class WorldMarkers.PlayerHomingPoint
java.lang.Object
zombie.iso.WorldMarkers.PlayerHomingPoint
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
getA()
float
The lerp value for angle adjustment, can be tweaked to be more slowly or faster responding.float
getB()
float
getG()
float
Offset the screen target point, for example to point to top of counter by offsetting Y valuefloat
int
The distance in tiles uppon which the pointer will jump to target (if homeOnTarget is enabled, and the target is onScreen)int
getID()
float
The lerp value for jumping to target (homeOneTarget), can be tweaked to be more slowly or faster responding.float
getR()
float
float
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.float
float
Render width and height for the pointer texture.float
The distance in pixels the pointer will hover around the character.float
int
getX()
The target position on the map for this pointer.int
getY()
boolean
isActive()
Active can be set to false, the pointer will remain but wont be drawn.boolean
When enabled will ommit angle calculation, custom angle be set with 'setTargetAngle'.boolean
if enabled the pointer will jump to the target when its in view (and within the 'homeOnTargetDist'.boolean
void
remove()
When called will remove the pointer next tickvoid
setA
(float _a) void
setActive
(boolean _active) void
setAngleLerpVal
(float _angleLerpVal) void
setB
(float _b) void
setCustomTargetAngle
(boolean _customTargetAngle) void
setG
(float _g) void
void
setHomeOnOffsetX
(float _homeOnOffsetX) void
setHomeOnOffsetY
(float _homeOnOffsetY) void
setHomeOnTargetDist
(int _homeOnTargetDist) void
setHomeOnTargetInView
(boolean _homeOnTargetInView) void
setMovementLerpVal
(float _movementLerpVal) void
setR
(float _r) void
setRenderHeight
(float _renderHeight) void
setRenderOffsetX
(float _renderOffsetX) void
setRenderOffsetY
(float _renderOffsetY) void
setRenderWidth
(float _renderWidth) void
setStickToCharDist
(float _stickToCharDist) void
void
setTargetAngle
(float _targetAngle) void
setTexture
(String texname) void
setX
(int _x) void
setXOffsetScaled
(float offset) void
setY
(int _y) void
setYOffsetScaled
(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)
-