Class Player

    • Constructor Detail

      • Player

        public Player​(java.lang.Object reference)
        Note: This shouldn't be used by API users, it's an internal constructor.
    • Method Detail

      • getOverheadIcon

        public int getOverheadIcon()
      • getTeam

        public int getTeam()
      • getLevel

        public int getLevel()
        Description copied from class: Character
        Gets the Character's combat level.
        Specified by:
        getLevel in class Character
        Returns:
        the combat level of this Character.
      • getSkullIcon

        public int getSkullIcon()
      • isSkulled

        public boolean isSkulled()
      • isHidden

        public boolean isHidden()
      • getName

        public java.lang.String getName()
        Description copied from class: Entity
        Gets the name of the entity
        Specified by:
        getName in interface Identifiable
        Specified by:
        getName in class Entity
        Returns:
        name of entity
      • getIndex

        public int getIndex()
        Description copied from class: Character
        Gets the index of this Character.
        Specified by:
        getIndex in class Character
        Returns:
        this index location.
      • setIndex

        public void setIndex​(int index)
      • getBoundingBox

        public java.awt.Rectangle getBoundingBox()
        Description copied from class: Entity
        Gets the bounding box for the entity's model
        Overrides:
        getBoundingBox in class Entity
        Returns:
        bounding box of model
      • getID

        public int getID()
        Description copied from interface: Identifiable
        Gets ID number of the given object.
        Returns:
        the ID number as integer.
      • hasAction

        public boolean hasAction​(java.lang.String... actions)
        Determines if player contains at least one of the following actions.
        Specified by:
        hasAction in class Entity
        Parameters:
        actions - actions to check
        Returns:
        boolean which is true if player has at least one of the possible actions, otherwise it is false.
      • getActions

        public java.lang.String[] getActions()
        Gets the actions available for a player. This array DOES contain null values. Values returned here will update during wildy
        Specified by:
        getActions in class Entity
        Returns:
        Current available actions for a player
      • toString

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

        public java.util.List<Item> getEquipment()
        Gets a list of Items that the player is wearing based on PlayerComposite.getAppearance() and adjusting the values by -512
        Returns:
        List of items player is wearing, empty if items not found, note specific slot information is not filled in.
      • hashed

        public java.lang.String hashed()
      • hashed

        public java.lang.String hashed​(java.lang.String prepend,
                                       java.lang.String append)