wip: prepare ai for using action trees and boards with score calculation

This commit is contained in:
2021-06-05 05:19:07 +02:00
parent aa1d2c48df
commit c97ff03a68
9 changed files with 338 additions and 18 deletions

View File

@ -24,6 +24,18 @@ public class Stat {
this.value = max;
}
/**
* Constructs a new {@link Stat} with the given values.
* @param type The {@link StatType} of the stat
* @param value The value of the stat
* @param max The maximum value of the stat
*/
public Stat(StatType type, int value, int max) {
this.type = type;
this.max = max;
this.value = value;
}
public int getValue() {
return value;
}