Package zombie.iso
Class WorldMarkers.PlayerHomingPoint
java.lang.Object
zombie.iso.WorldMarkers.PlayerHomingPoint
- Enclosing class:
- WorldMarkers
-
Constructor Summary
-
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)
-