This commit is contained in:
Leijurv
2018-09-06 07:48:27 -07:00
parent db3aa5a714
commit 63b04df95d
7 changed files with 207 additions and 3 deletions
@@ -84,6 +84,10 @@ public abstract class Movement implements Helper, MovementHelper {
return getCost(null);
}
protected void override(double cost) {
this.cost = cost;
}
public double calculateCostWithoutCaching() {
return calculateCost(new CalculationContext());
}