summaryrefslogtreecommitdiff
path: root/dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java
diff options
context:
space:
mode:
authorbculkin2442 <bjculkin@mix.wvu.edu>2016-04-17 15:57:20 -0400
committerbculkin2442 <bjculkin@mix.wvu.edu>2016-04-17 15:57:20 -0400
commitd9437c1d328ccc2b26bd0aae19c2aff7140e466b (patch)
treea2292224ba16766fe3dc99140e90089e24aea9c7 /dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java
parent4fcefd106eb23295592e9cc23a0c5d63a28f9e76 (diff)
Minor cleanups
Diffstat (limited to 'dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java')
-rw-r--r--dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java66
1 files changed, 33 insertions, 33 deletions
diff --git a/dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java b/dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java
index 9f609b4..3ac9420 100644
--- a/dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java
+++ b/dice-lang/src/main/java/bjc/dicelang/PolyhedralDice.java
@@ -8,6 +8,15 @@ package bjc.dicelang;
*/
public class PolyhedralDice {
/**
+ * Produce a single d10
+ *
+ * @return A single d10
+ */
+ public static IDiceExpression d10() {
+ return d10(1);
+ }
+
+ /**
* Produce the specified number of 10-sided dice
*
* @param nDice
@@ -19,12 +28,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d10
+ * Produce a single d100
*
- * @return A single d10
+ * @return A single d100
*/
- public static IDiceExpression d10() {
- return d10(1);
+ public static IDiceExpression d100() {
+ return d100(1);
}
/**
@@ -39,12 +48,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d100
+ * Produce a single d12
*
- * @return A single d100
+ * @return A single d12
*/
- public static IDiceExpression d100() {
- return d100(1);
+ public static IDiceExpression d12() {
+ return d12(1);
}
/**
@@ -59,12 +68,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d12
+ * Produce a single d20
*
- * @return A single d12
+ * @return A single d20
*/
- public static IDiceExpression d12() {
- return d12(1);
+ public static IDiceExpression d20() {
+ return d20(1);
}
/**
@@ -79,12 +88,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d20
+ * Produce a single d4
*
- * @return A single d20
+ * @return A single d4
*/
- public static IDiceExpression d20() {
- return d20(1);
+ public static IDiceExpression d4() {
+ return d4(1);
}
/**
@@ -99,12 +108,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d4
+ * Produce a single d6
*
- * @return A single d4
+ * @return A single d6
*/
- public static IDiceExpression d4() {
- return d4(1);
+ public static IDiceExpression d6() {
+ return d6(1);
}
/**
@@ -119,12 +128,12 @@ public class PolyhedralDice {
}
/**
- * Produce a single d6
+ * Produce a single d8
*
- * @return A single d6
+ * @return A single d8
*/
- public static IDiceExpression d6() {
- return d6(1);
+ public static IDiceExpression d8() {
+ return d8(1);
}
/**
@@ -137,13 +146,4 @@ public class PolyhedralDice {
public static IDiceExpression d8(int nDice) {
return new ComplexDice(nDice, 8);
}
-
- /**
- * Produce a single d8
- *
- * @return A single d8
- */
- public static IDiceExpression d8() {
- return d8(1);
- }
}