Skip to content

Commit 4e5bb04

Browse files
committed
Peak
1 parent 0043e2f commit 4e5bb04

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Runtime/Details/SolverStats.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace Activ.GOAP{
66
public interface SolverStats{
77

88
PlanningState status { get; }
9-
int fxMaxNodes { get; }
9+
int peak { get; }
1010
int I { get; }
1111

1212
}

Runtime/Solver.cs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ public class Solver<T> : SolverStats where T : class{
1212
public float tolerance;
1313
public bool brfs, safe = true;
1414
public PlanningState status { get; private set; }
15-
// TODO terrible name
16-
public int fxMaxNodes { get; private set; }
15+
public int peak { get; private set; }
1716
public int I { get; private set; }
1817
T initialState;
1918
Dish<T> dish;
@@ -46,7 +45,7 @@ public Node<T> Iterate(int iter=-1){
4645
}
4746
ExpandActions(current, avail);
4847
ExpandMethods(current, avail);
49-
if(avail.count > fxMaxNodes) fxMaxNodes = avail.count;
48+
if(avail.count > peak) peak = avail.count;
5049
}
5150
if(avail.capacityExceeded){
5251
status = S.CapacityExceeded;

0 commit comments

Comments
 (0)