Package dev.twilite.game.facade
Class Combat
java.lang.Object
dev.twilite.game.facade.Combat
Convenience accessors for common player combat state.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanReturns whether a regular or stronger antifire effect is active.static booleanReturns whether an antipoison effect is active.static booleanReturns whether an antivenom effect is active.static booleanmulti()Returns whether the player is currently in a multiway combat area.static intReturns the damage of the player's next poison or venom hitsplat.static booleanpoisoned()Returns whether the player currently has poison or venom damage queued.static booleanpvp()Returns whether the player is currently in or adjacent to a PvP area.static voidretaliate(boolean enabled) Enables or disables auto retaliate.static booleanReturns whether auto retaliate is enabled.static voidselectSpecial(boolean enabled) Enables or disables special attack.static intReturns the player's special attack energy from0to100.static booleanReturns whether special attack is currently enabled.static booleanReturns whether a super antifire effect is active.static intReturns the remaining teleblock duration in game ticks.static booleanvenomed()Returns whether the player is currently venomed.
-
Constructor Details
-
Combat
public Combat()
-
-
Method Details
-
teleblockTicks
public static int teleblockTicks()Returns the remaining teleblock duration in game ticks. -
poisoned
public static boolean poisoned()Returns whether the player currently has poison or venom damage queued. -
venomed
public static boolean venomed()Returns whether the player is currently venomed. -
antipoisoned
public static boolean antipoisoned()Returns whether an antipoison effect is active. -
antivenomed
public static boolean antivenomed()Returns whether an antivenom effect is active. -
nextPoisonDamage
public static int nextPoisonDamage()Returns the damage of the player's next poison or venom hitsplat. -
specialSelected
public static boolean specialSelected()Returns whether special attack is currently enabled. -
selectSpecial
public static void selectSpecial(boolean enabled) Enables or disables special attack. -
specialEnergy
public static int specialEnergy()Returns the player's special attack energy from0to100. -
antifired
public static boolean antifired()Returns whether a regular or stronger antifire effect is active. -
superAntifired
public static boolean superAntifired()Returns whether a super antifire effect is active. -
retaliating
public static boolean retaliating()Returns whether auto retaliate is enabled. -
retaliate
public static void retaliate(boolean enabled) Enables or disables auto retaliate. -
multi
public static boolean multi()Returns whether the player is currently in a multiway combat area. -
pvp
public static boolean pvp()Returns whether the player is currently in or adjacent to a PvP area.
-