EvolvingBehavior  0.2.0
 
Loading...
Searching...
No Matches
UFitnessTracker Class Reference

Tracks fitness for all members of a population. Can be asked for a fitness score. More...

#include <FitnessTracker.h>

Inheritance diagram for UFitnessTracker:
UService

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
UServiceInjectorserviceInjector
 

Detailed Description

Tracks fitness for all members of a population. Can be asked for a fitness score.

Author
agrundwerg
npc
Date
12/12/17

You should register every FitnessUpdater with the FitnessTracker.


The documentation for this class was generated from the following files:
  • Source/EvolvingBehavior/Public/FitnessTracker.h
  • Source/EvolvingBehavior/Private/FitnessTracker.cpp