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

Class RollMethod

code/src/java/pcgen/cdom/content/RollMethod.java:28–115  ·  view source on GitHub ↗

A RollMethod is a method used to generate dice rolls for Character creation

Source from the content-addressed store, hash-verified

26 * A RollMethod is a method used to generate dice rolls for Character creation
27 */
28public class RollMethod implements Loadable, SortKeyRequired
29{
30
31 /**
32 * The source URI of this RollMethod.
33 */
34 private URI sourceURI;
35
36 /**
37 * The name of this RollMethod.
38 */
39 private String methodName;
40
41 /**
42 * The implementation of this RollMethod. This is a string representation of a
43 * formula.
44 */
45 private String rollMethod;
46
47 /**
48 * The sort key of this RollMethod, to indicate which items should appear first.
49 */
50 private String sortKey;
51
52 @Override
53 public URI getSourceURI()
54 {
55 return sourceURI;
56 }
57
58 @Override
59 public void setSourceURI(URI source)
60 {
61 sourceURI = source;
62 }
63
64 @Override
65 public void setName(String name)
66 {
67 methodName = name;
68 }
69
70 @Override
71 public String getDisplayName()
72 {
73 return methodName;
74 }
75
76 @Override
77 public String getKeyName()
78 {
79 return getDisplayName();
80 }
81
82 @Override
83 public boolean isInternal()
84 {
85 return false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected