Class Combat

java.lang.Object
dev.twilite.game.facade.Combat

public class Combat extends Object
Convenience accessors for common player combat state.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    Returns whether a regular or stronger antifire effect is active.
    static boolean
    Returns whether an antipoison effect is active.
    static boolean
    Returns whether an antivenom effect is active.
    static boolean
    Returns whether the player is currently in a multiway combat area.
    static int
    Returns the damage of the player's next poison or venom hitsplat.
    static boolean
    Returns whether the player currently has poison or venom damage queued.
    static boolean
    pvp()
    Returns whether the player is currently in or adjacent to a PvP area.
    static void
    retaliate(boolean enabled)
    Enables or disables auto retaliate.
    static boolean
    Returns whether auto retaliate is enabled.
    static void
    selectSpecial(boolean enabled)
    Enables or disables special attack.
    static int
    Returns the player's special attack energy from 0 to 100.
    static boolean
    Returns whether special attack is currently enabled.
    static boolean
    Returns whether a super antifire effect is active.
    static int
    Returns the remaining teleblock duration in game ticks.
    static boolean
    Returns whether the player is currently venomed.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 from 0 to 100.
    • 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.