Safespot
A solved combat safespot and its deterministic movement plan.
ClassRLPlugins API
public class SafespotMembers
Constructors
- new
Methods
- voidattack()
Attack.
- voidattack(NpcEx)
Attack.
- intgetDangerTicks()
The danger ticks.
- List<WorldPoint>getExpectedNpcPath()
The expected npc path.
- intgetExpectedTicks()
The expected ticks.
- List<WorldPoint>getPath()
The path.
- intgetPathDistance()
The path distance.
- intgetScore()
The score.
- intgetStableTicks()
The stable ticks.
- NpcExgetTarget()
The target.
- intgetTicksToReach()
The ticks to reach.
- WorldPointgetWorldPoint()
The world point.
- booleanhasSetupDanger()
Whether it has setup danger.
- booleanisReached()
Whether reached.
- booleanisRequiresKiting()
Whether requires kiting.
- voidwalkTo()
Walk to.
Safespot(NpcEx, WorldPoint, List<WorldPoint>, List<WorldPoint>, int, int, int, int, int, boolean)
public Safespot(NpcEx target, WorldPoint worldPoint, List<WorldPoint> path, List<WorldPoint> expectedNpcPath, int expectedTicks, int stableTicks, int score, int dangerTicks, int ticksToReach, boolean requiresKiting)Creates a Safespot.
Parameters
target- Target.
worldPoint- World point.
path- Path.
expectedNpcPath- Expected npc path.
expectedTicks- Expected ticks.
stableTicks- Stable ticks.
score- Score.
dangerTicks- Danger ticks.
ticksToReach- Ticks to reach.
requiresKiting- Requires kiting.
attack()
public void attack()Attack.
attack(NpcEx)
public void attack(NpcEx npc)Attack.
Parameters
npc- Npc.
getDangerTicks()
public int getDangerTicks()The danger ticks.
getExpectedNpcPath()
public List<WorldPoint> getExpectedNpcPath()The expected npc path.
getExpectedTicks()
public int getExpectedTicks()The expected ticks.
getPath()
public List<WorldPoint> getPath()The path.
getPathDistance()
public int getPathDistance()The path distance.
getScore()
public int getScore()The score.
getStableTicks()
public int getStableTicks()The stable ticks.
getTarget()
public NpcEx getTarget()The target.
getTicksToReach()
public int getTicksToReach()The ticks to reach.
getWorldPoint()
public WorldPoint getWorldPoint()The world point.
hasSetupDanger()
public boolean hasSetupDanger()Whether it has setup danger.
isReached()
public boolean isReached()Whether reached.
isRequiresKiting()
public boolean isRequiresKiting()Whether requires kiting.
walkTo()
public void walkTo()Walk to.
- Can wait for the game. Call it only from
VitaPlugin.loop(); in a@Subscribemethod it freezes the game.
Also allowed
Every class has these, as in plain Java.
equals, toString