diff options
| author | student <student@localhost> | 2018-02-12 13:55:50 -0500 |
|---|---|---|
| committer | student <student@localhost> | 2018-02-12 13:55:50 -0500 |
| commit | 4c8639f361983d97a7b46282b12528b550fff946 (patch) | |
| tree | 4ac54f4b37b46c423c59a8d2d942068c2808e6f5 /base/src/bjc/dicelang/EvaluatorResult.java | |
| parent | ce2e30a03bcc2d62179a3751a43912bfab7dd46d (diff) | |
Adjust to dice changes
Diffstat (limited to 'base/src/bjc/dicelang/EvaluatorResult.java')
| -rw-r--r-- | base/src/bjc/dicelang/EvaluatorResult.java | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/base/src/bjc/dicelang/EvaluatorResult.java b/base/src/bjc/dicelang/EvaluatorResult.java index 391cd6f..f23fc71 100644 --- a/base/src/bjc/dicelang/EvaluatorResult.java +++ b/base/src/bjc/dicelang/EvaluatorResult.java @@ -1,14 +1,17 @@ package bjc.dicelang; import bjc.dicelang.dice.Die; -import bjc.dicelang.dice.DieExpression; +import bjc.dicelang.dice.DiceExpression; import bjc.dicelang.dice.DieList; +import bjc.dicelang.dice.ListDiceExpression; +import bjc.dicelang.dice.ScalarDiceExpression; import bjc.utils.data.ITree; import bjc.utils.data.Tree; /* * @TODO 10/09/17 Ben Culkin :EvalResultReorg - * Again, split it into seperate classes based off of the type. + * + * Again, split it into separate classes based off of the type. */ /** * The result from the evaluator. @@ -64,7 +67,7 @@ public class EvaluatorResult { /** * The dice value of the result. */ - public DieExpression diceVal; + public DiceExpression diceVal; /** * The string value of the result. */ @@ -153,7 +156,7 @@ public class EvaluatorResult { * @param typ * @param dVal */ - public EvaluatorResult(final EvaluatorResult.Type typ, final DieExpression dVal) { + public EvaluatorResult(final EvaluatorResult.Type typ, final DiceExpression dVal) { this(typ); diceVal = dVal; @@ -168,7 +171,7 @@ public class EvaluatorResult { public EvaluatorResult(final EvaluatorResult.Type typ, final Die dVal) { this(typ); - diceVal = new DieExpression(dVal); + diceVal = new ScalarDiceExpression(dVal); } /** @@ -180,7 +183,7 @@ public class EvaluatorResult { public EvaluatorResult(final EvaluatorResult.Type typ, final DieList dVal) { this(typ); - diceVal = new DieExpression(dVal); + diceVal = new ListDiceExpression(dVal); } /** |
