Class StatusResistancesList

java.lang.Object
games.stendhal.server.entity.status.StatusResistancesList

public class StatusResistancesList extends Object
Author:
AntumDeluge Some code based on games.stendhal.server.entity.status.StatusList Container that holds information about the entities current resistances to status effects.
  • Constructor Details

    • StatusResistancesList

      public StatusResistancesList()
      Default constructor the container for status resistances.
  • Method Details

    • getMap

      public Map<StatusType,​Double> getMap()
      Get the Map class for parsing.
      Returns:
      Map class of resistance list
    • getStatusResistance

      public double getStatusResistance(StatusType statusType)
      Find the resistance to a specified status type.
      Parameters:
      statusType - Status type to be resisted
      Returns:
      Resistance value
    • isEmpty

      public Boolean isEmpty()
      Helper method to find if status list is empty after initialized.
      Returns:
      true if empty, false if not
    • setStatusResistances

      public void setStatusResistances(Map<StatusType,​Double> resistanceList)
      Reset or create resistances after construction.
      Parameters:
      resistanceList - Status resistances to be created
    • toString

      public String toString()
      Overrides:
      toString in class Object