MCPcopy Create free account
hub / github.com/PCGen/pcgen / RuleSet

Class RuleSet

code/src/java/pcgen/core/doomsdaybook/RuleSet.java:29–352  ·  view source on GitHub ↗

This class deals with RuleSets for Random name generation

Source from the content-addressed store, hash-verified

27 *
28 */
29public class RuleSet extends ArrayList<String> implements DataElement
30{
31 private final List<DataValue> retList = new ArrayList<>();
32 private Rule retRule;
33 private String id;
34 private String title;
35 private String usage = "private";
36 private final VariableHashMap allVars;
37 private int weight;
38
39 /**
40 * Constructor
41 *
42 * @param allVars
43 * @param title
44 * @param id
45 * @param weight
46 */
47 public RuleSet(VariableHashMap allVars, String title, String id, int weight)
48 {
49 this.allVars = allVars;
50 this.title = title;
51 this.id = id;
52 this.weight = weight;
53 }
54
55 /**
56 * Constructor
57 *
58 * @param allVars
59 * @param title
60 * @param id
61 * @param usage
62 */
63 public RuleSet(VariableHashMap allVars, String title, String id, String usage)
64 {
65 this(allVars, title, id, 1, usage);
66 }
67
68 /**
69 * Constructor
70 *
71 * @param allVars
72 * @param title
73 * @param id
74 * @param weight
75 * @param usage
76 */
77 private RuleSet(VariableHashMap allVars, String title, String id, int weight, String usage)
78 {
79 this.allVars = allVars;
80 this.title = title;
81 this.id = id;
82 this.weight = weight;
83 this.usage = usage;
84 }
85
86 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected