diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-18 19:47:49 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-18 19:50:05 -0400 |
| commit | 1bff7e49ed64d74e36d901e84c594cf63b58350b (patch) | |
| tree | 234ee635d36a5a4a26994e07ac2367f87b0cba3a /BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java | |
| parent | 8ffe41a3575e7d9e4602deeb5f878c4687f4e389 (diff) | |
General changes to the dice package
The biggest change is the addition of variables and assignment
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java b/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java index dde09b4..bef68e1 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java +++ b/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java @@ -2,6 +2,7 @@ package bjc.utils.dice; /** * A die that represents a static number + * * @author ben * */ @@ -18,10 +19,17 @@ public class ScalarDie implements IDiceExpression { /** * Create a dice with the specified number - * @param num The number used for the dice + * + * @param num + * The number used for the dice */ public ScalarDie(int num) { this.num = num; } + @Override + public String toString() { + return Integer.toString(num); + } + } |
