summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-03-28 08:47:45 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-03-28 08:47:45 -0400
commit260cc55c485980cd31193300962a88f1de8d62f7 (patch)
treec08c646056d04352e18bb80e07b9a35765c8946f /BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java
parent4d904a55a1b5fe6506f81c2c292c07dfe839029f (diff)
Moved dice things to seperate project
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.java45
1 files changed, 0 insertions, 45 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
deleted file mode 100644
index 4ed99b9..0000000
--- a/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java
+++ /dev/null
@@ -1,45 +0,0 @@
-package bjc.utils.dice;
-
-/**
- * A die that represents a static number
- *
- * @author ben
- *
- */
-public class ScalarDie implements IDiceExpression {
- /**
- * The represented number
- */
- private int num;
-
- /**
- * Create a dice with the specified number
- *
- * @param num
- * The number used for the dice
- */
- public ScalarDie(int num) {
- this.num = num;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see bjc.utils.dice.IDiceExpression#roll()
- */
- @Override
- public int roll() {
- return num;
- }
-
- /*
- * (non-Javadoc)
- *
- * @see java.lang.Object#toString()
- */
- @Override
- public String toString() {
- return Integer.toString(num);
- }
-
-}