Class OSRSCombatGauge

    • Constructor Summary

      Constructors 
      Constructor Description
      OSRSCombatGauge​(long uid)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCurrentWidth()  
      int getMaxWidth()  
      int getPercent()
      Gets the percentage of the gauge that is filled up
      boolean isValid()
      Verifies whether this entity is valid and still exists, typically on the world-graph
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • OSRSCombatGauge

        public OSRSCombatGauge​(long uid)
    • Method Detail

      • getPercent

        public int getPercent()
        Description copied from interface: CombatGauge
        Gets the percentage of the gauge that is filled up
        Specified by:
        getPercent in interface CombatGauge
        Returns:
        The percentage if available, otherwise -1
      • isValid

        public boolean isValid()
        Description copied from interface: Validatable
        Verifies whether this entity is valid and still exists, typically on the world-graph
        Specified by:
        isValid in interface Validatable
        Returns:
        true if it's still available, otherwise false
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object