Class Wands
java.lang.Object
Wands
List of wands and staves.
- Since:
- 2018-12-04
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescription(package private) static Wands
The singleton class instance.(package private) int
Maximum tier of wands.(package private) int[]
Count of entries at each tier.(package private) Wands.WandInfo[]
Table of wand information.(package private) final String
Name of file with wands. -
Constructor Summary
-
Method Summary
-
Field Details
-
WANDS_FILE
Name of file with wands.- See Also:
-
instance
The singleton class instance. -
wandList
Wands.WandInfo[] wandListTable of wand information. -
tierCount
int[] tierCountCount of entries at each tier. -
maxTier
int maxTierMaximum tier of wands.
-
-
Constructor Details
-
Wands
Constructor (read from dedicated file).- Throws:
IOException
-
-
Method Details
-
getInstance
Access the singleton class instance. -
setMaxTier
private void setMaxTier()Set the maximum tier. -
setTierCounts
private void setTierCounts()Count entries at each tier. -
getRandom
Get random wand at specified tier. -
getTier
Get tier of wand from equipment. -
main
Main test function.
-