Class Totem

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isCleansed()
      Checks if this Totem was already cleansed.
      boolean isHex()
      Checks if this Totem is a Hex Totem.
      void setDull()
      Sets this Totem to a Dull Totem, if it is not cleansed, and not a Dull Totem already.
      void setHex​(Perk perk)
      Sets this Totem to a Hex Totem.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isHex

        public boolean isHex()
        Checks if this Totem is a Hex Totem.
        Returns:
        True if it is a Hex Totem.
      • isCleansed

        public boolean isCleansed()
        Checks if this Totem was already cleansed.
        Returns:
        True if a Survivor has cleansed this Totem.
      • setHex

        public void setHex​(Perk perk)
        Sets this Totem to a Hex Totem.
        Parameters:
        perk - The Perk this Totem belongs to.
        Throws:
        java.lang.IllegalStateException - If this Totem is already a Hex Totem or if it was already cleansed.
      • setDull

        public void setDull()
        Sets this Totem to a Dull Totem, if it is not cleansed, and not a Dull Totem already. In other words, removes the Perk that it was assigned to.