summaryrefslogtreecommitdiff
path: root/BJC-Utils2/src/main/java/bjc/utils/dice/ScalarDie.java
blob: dde09b4cf669924e4de919c86abf85381078bfa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package bjc.utils.dice;

/**
 * A die that represents a static number
 * @author ben
 *
 */
public class ScalarDie implements IDiceExpression {
	/**
	 * The represented number
	 */
	private int num;

	@Override
	public int roll() {
		return num;
	}

	/**
	 * Create a dice with the specified number
	 * @param num The number used for the dice
	 */
	public ScalarDie(int num) {
		this.num = num;
	}

}