Class StatChange

    • Constructor Detail

      • StatChange

        public StatChange()
    • Method Detail

      • getFormattedRelative

        public String getFormattedRelative()
        Returns a human-readable formatted relative boost. Should be the boost amount prefixed by "+" or "-".
        Returns:
        The formatted relative boost amount
      • getFormattedTheoretical

        public String getFormattedTheoretical()
        Returns a human-readable formatted theoretical boost. Should be the boost amount prefixed by "+" or "-".
        Returns:
        The formatted theoretical boost amount
      • getStat

        public Stat getStat()
        The stat which will be boosted (or damaged).
      • getRelative

        public int getRelative()
        Relative change that will occur if the stat boost is applied now.
      • getTheoretical

        public int getTheoretical()
        Theoretical change that can occur before boost cap is enforced.
      • getAbsolute

        public int getAbsolute()
        Absolute total of the stat after applying the boost.
      • getPositivity

        public Positivity getPositivity()
        How beneficial this stat boost will be to the player.
      • setStat

        public void setStat​(Stat stat)
        The stat which will be boosted (or damaged).
      • setRelative

        public void setRelative​(int relative)
        Relative change that will occur if the stat boost is applied now.
      • setTheoretical

        public void setTheoretical​(int theoretical)
        Theoretical change that can occur before boost cap is enforced.
      • setAbsolute

        public void setAbsolute​(int absolute)
        Absolute total of the stat after applying the boost.
      • setPositivity

        public void setPositivity​(Positivity positivity)
        How beneficial this stat boost will be to the player.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object