A RollMethod is a method used to generate dice rolls for Character creation
| 26 | * A RollMethod is a method used to generate dice rolls for Character creation |
| 27 | */ |
| 28 | public 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; |
nothing calls this directly
no outgoing calls
no test coverage detected