Class Wands


public class Wands extends Object
List of wands and staves.
Since:
2018-12-04
  • Field Details

    • WANDS_FILE

      final String WANDS_FILE
      Name of file with wands.
      See Also:
    • instance

      static Wands instance
      The singleton class instance.
    • wandList

      Wands.WandInfo[] wandList
      Table of wand information.
    • tierCount

      int[] tierCount
      Count of entries at each tier.
    • maxTier

      int maxTier
      Maximum tier of wands.
  • Constructor Details

  • Method Details

    • getInstance

      public static Wands getInstance()
      Access the singleton class instance.
    • setMaxTier

      private void setMaxTier()
      Set the maximum tier.
    • setTierCounts

      private void setTierCounts()
      Count entries at each tier.
    • getRandom

      public Equipment getRandom(int tier)
      Get random wand at specified tier.
    • getTier

      public int getTier(Equipment wand)
      Get tier of wand from equipment.
    • main

      public static void main(String[] args)
      Main test function.