BrawlerAGD BrawlerAGD 0.0.0 ALPHA
An Automated Game Designer (AGD) Used for Creating Brawler Fighting Games. An Automated Game Designer for Brawler Video Games
EvolutionManager Class Reference
Inheritance diagram for EvolutionManager:

Public Member Functions

void AddResultFromGame (GameResult result)
 
void SetTimeScale (float timeScalar)
 
IEnumerator Evolve ()
 
void crossoverGames (int gid1, int gid2, int newGameid)
 
int compareGameIDs (int gid1, int gid2)
 
void SaveToResults ()
 
void WriteJson< T > (string filename, T serializedObj)
 

Public Attributes

int currGeneration = 0
 
int currentGameID = 0
 
float maxGameLength = 60f
 
float targetGameLength = 45f
 
float damageFitnessScalar = 10f
 
Random rand = new Random()
 
List< float > averageFitness = new List<float>()
 
List< float > averageTopFitness = new List<float>()
 
Dictionary< int, GameResultresults = new Dictionary<int, GameResult>()
 
Dictionary< int, float > evals = new Dictionary<int, float>()
 
EvolutionResults evolutionResults
 

Static Public Attributes

static EvolutionManager instance = null
 

Member Function Documentation

◆ AddResultFromGame()

void EvolutionManager.AddResultFromGame ( GameResult  result)

◆ compareGameIDs()

int EvolutionManager.compareGameIDs ( int  gid1,
int  gid2 
)

◆ crossoverGames()

void EvolutionManager.crossoverGames ( int  gid1,
int  gid2,
int  newGameid 
)

◆ Evolve()

IEnumerator EvolutionManager.Evolve ( )

◆ SaveToResults()

void EvolutionManager.SaveToResults ( )

◆ SetTimeScale()

void EvolutionManager.SetTimeScale ( float  timeScalar)

◆ WriteJson< T >()

void EvolutionManager.WriteJson< T > ( string  filename,
serializedObj 
)

Member Data Documentation

◆ averageFitness

List<float> EvolutionManager.averageFitness = new List<float>()

◆ averageTopFitness

List<float> EvolutionManager.averageTopFitness = new List<float>()

◆ currentGameID

int EvolutionManager.currentGameID = 0

◆ currGeneration

int EvolutionManager.currGeneration = 0

◆ damageFitnessScalar

float EvolutionManager.damageFitnessScalar = 10f

◆ evals

Dictionary<int, float> EvolutionManager.evals = new Dictionary<int, float>()

◆ evolutionResults

EvolutionResults EvolutionManager.evolutionResults

◆ instance

EvolutionManager EvolutionManager.instance = null
static

◆ maxGameLength

float EvolutionManager.maxGameLength = 60f

◆ rand

Random EvolutionManager.rand = new Random()

◆ results

Dictionary<int, GameResult> EvolutionManager.results = new Dictionary<int, GameResult>()

◆ targetGameLength

float EvolutionManager.targetGameLength = 45f

The documentation for this class was generated from the following file: