Package com.kraken.api.simulation
Class SimulationDecisionAdapter.ExecutableStep
- java.lang.Object
-
- com.kraken.api.simulation.SimulationDecisionAdapter.ExecutableStep
-
- Enclosing class:
- SimulationDecisionAdapter
public static final class SimulationDecisionAdapter.ExecutableStep extends java.lang.ObjectRuntime step payload translated from simulation decisions.
-
-
Constructor Summary
Constructors Constructor Description ExecutableStep()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SimulationDecisionAdapter.ExecutableStepcastSpell(CastableSpell spell, java.lang.Integer targetNpcIndex)Creates spell cast step.static SimulationDecisionAdapter.ExecutableStepequipItem(int itemId)Creates equipment step.static SimulationDecisionAdapter.ExecutableStepinventoryInteract(int itemId, java.lang.String action)Creates inventory interaction step.static SimulationDecisionAdapter.ExecutableStepmove(net.runelite.api.coords.WorldPoint destination)Creates movement step.static SimulationDecisionAdapter.ExecutableStepnpcInteract(int npcIndex, java.lang.String action)Creates npc interaction step.static SimulationDecisionAdapter.ExecutableStepswitchPrayer(net.runelite.api.Prayer prayer)Creates prayer switch step.
-
-
-
Method Detail
-
move
public static SimulationDecisionAdapter.ExecutableStep move(net.runelite.api.coords.WorldPoint destination)
Creates movement step.- Parameters:
destination- movement destination in world coordinates.- Returns:
- executable movement step.
-
npcInteract
public static SimulationDecisionAdapter.ExecutableStep npcInteract(int npcIndex, java.lang.String action)
Creates npc interaction step.- Parameters:
npcIndex- RuneLite npc index to target.action- npc interaction menu action text.- Returns:
- executable npc-interaction step.
-
switchPrayer
public static SimulationDecisionAdapter.ExecutableStep switchPrayer(net.runelite.api.Prayer prayer)
Creates prayer switch step.- Parameters:
prayer- overhead prayer to activate.- Returns:
- executable prayer-switch step.
-
equipItem
public static SimulationDecisionAdapter.ExecutableStep equipItem(int itemId)
Creates equipment step.- Parameters:
itemId- inventory item id to equip.- Returns:
- executable equip-item step.
-
inventoryInteract
public static SimulationDecisionAdapter.ExecutableStep inventoryInteract(int itemId, java.lang.String action)
Creates inventory interaction step.- Parameters:
itemId- inventory item id to interact with.action- interaction action text (for example, Eat/Drink/Use).- Returns:
- executable inventory-interaction step.
-
castSpell
public static SimulationDecisionAdapter.ExecutableStep castSpell(CastableSpell spell, java.lang.Integer targetNpcIndex)
Creates spell cast step.- Parameters:
spell- spell to cast.targetNpcIndex- optional target npc index, null for untargeted cast.- Returns:
- executable spell-cast step.
-
-