Tracks fitness for all members of a population. Can be asked for a fitness score. More...
#include <FitnessTracker.h>
Public Member Functions | |
void | SetFitnessCalculator (UFitnessCalculator *calculator) |
bool | ContainsFitnessFor (int32 id) |
void | UpdateFitness (int32 id, UFitness *fitness) |
float | GetFitness (int32 id) |
Retrieves the fitness of a specific population member (behavior tree). | |
float | GetFitnessValueForKey (int32 id, FString fitnessKey) |
void | RegisterFitnessUpdater (TScriptInterface< IFitnessUpdater > fitnessUpdater) |
Registers a fitness updater so this tracker will listen to updates from it. | |
void | HandleFitnessUpdated (int32 id, FString key, float value, bool isDelta) |
void | Reset () |
Public Member Functions inherited from UService | |
virtual void | Init (UServiceInjector *injector) |
Additional Inherited Members | |
Protected Attributes inherited from UService | |
UServiceInjector * | serviceInjector |
Tracks fitness for all members of a population. Can be asked for a fitness score.
You should register every FitnessUpdater with the FitnessTracker.