Class Player

    • Constructor Detail

      • Player

        public Player​(java.lang.Object reference)
    • Method Detail

      • getHidden

        public boolean getHidden()
      • 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()
      • getModel

        public Model getModel()
        Description copied from class: Entity
        Gets the model of the entity
        Specified by:
        getModel in class Entity
        Returns:
        model of entity
      • 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 index location of the current Character.
        Specified by:
        getIndex in class Character
        Returns:
        the current 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()
        Specified by:
        getActions in class Entity
      • toString

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