summaryrefslogtreecommitdiff
path: root/src/main/java/tlIItools/AffixSet.java
diff options
context:
space:
mode:
authorBenjamin J. Culkin <bjculkin@mix.wvu.edu>2019-01-17 18:33:14 -0400
committerBenjamin J. Culkin <bjculkin@mix.wvu.edu>2019-01-17 18:33:14 -0400
commit8c613819790ae737150a9ad8bb82332a1aaab690 (patch)
tree03fd2180f3685ddfe6265568b542e18dae8b9280 /src/main/java/tlIItools/AffixSet.java
parent45e6547632957bfa5b806825eaebd6c0f8bdb736 (diff)
Refactor AffixLister
AffixLister got refactored some more, in preparation for adding the ability to load things that aren't affixes.
Diffstat (limited to 'src/main/java/tlIItools/AffixSet.java')
-rw-r--r--src/main/java/tlIItools/AffixSet.java34
1 files changed, 34 insertions, 0 deletions
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<String, List<Affix>> affixGroups;
+
+ /**
+ * All of the ungrouped affixes contained in this set.
+ */
+ public List<Affix> ungroupedAffixes;
+
+ /**
+ * Create a new blank affix set.
+ */
+ public AffixSet() {
+ affixGroups = new HashMap<>();
+
+ ungroupedAffixes = new ArrayList<>();
+ }
+}