File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ namespace Activ.GOAP{
66public interface SolverStats {
77
88 PlanningState status { get ; }
9- int fxMaxNodes { get ; }
9+ int peak { get ; }
1010 int I { get ; }
1111
1212}
Original file line number Diff line number Diff 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 ;
You can’t perform that action at this time.
0 commit comments