From 8c613819790ae737150a9ad8bb82332a1aaab690 Mon Sep 17 00:00:00 2001 From: "Benjamin J. Culkin" Date: Thu, 17 Jan 2019 18:33:14 -0400 Subject: Refactor AffixLister AffixLister got refactored some more, in preparation for adding the ability to load things that aren't affixes. --- src/main/java/tlIItools/AffixSet.java | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/main/java/tlIItools/AffixSet.java (limited to 'src/main/java/tlIItools/AffixSet.java') diff --git a/src/main/java/tlIItools/AffixSet.java b/src/main/java/tlIItools/AffixSet.java new file mode 100644 index 00000000..8f59d7b4 --- /dev/null +++ b/src/main/java/tlIItools/AffixSet.java @@ -0,0 +1,34 @@ +package tlIItools; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +/** + * Container of a set of affixes. + * + * @author Ben Culkin + */ +public class AffixSet { + /** + * All of the affix groups contained in this set. + * + * An affix group is a set of affixs that generally have the same or + * similiar effects, but have different intensities or spawn levels. + */ + public Map> affixGroups; + + /** + * All of the ungrouped affixes contained in this set. + */ + public List ungroupedAffixes; + + /** + * Create a new blank affix set. + */ + public AffixSet() { + affixGroups = new HashMap<>(); + + ungroupedAffixes = new ArrayList<>(); + } +} -- cgit v1.2.3