Table of Contents

Class UtilityComparer

Namespace
Global
Assembly
Assembly-CSharp.dll
public class UtilityComparer : AIModule
Inheritance
UtilityComparer
Inherited Members

Constructors

UtilityComparer(ArtificialIntelligence)

public UtilityComparer(ArtificialIntelligence AI)

Parameters

AI ArtificialIntelligence

Fields

highestUtilityTracker

public UtilityComparer.UtilityTracker highestUtilityTracker

Field Value

UtilityComparer.UtilityTracker

uTrackers

public List<UtilityComparer.UtilityTracker> uTrackers

Field Value

List<UtilityComparer.UtilityTracker>

vis

public UtilityVisualizer vis

Field Value

UtilityVisualizer

visualize

public bool visualize

Field Value

bool

Methods

AddComparedModule(AIModule, FloatTween, float, float)

public void AddComparedModule(AIModule module, FloatTweener.FloatTween smoother, float weight, float continuationBonus)

Parameters

module AIModule
smoother FloatTweener.FloatTween
weight float
continuationBonus float

GetSmoothedNonWeightedUtility(AIModule)

public float GetSmoothedNonWeightedUtility(AIModule module)

Parameters

module AIModule

Returns

float

GetUtilityTracker(AIModule)

public UtilityComparer.UtilityTracker GetUtilityTracker(AIModule module)

Parameters

module AIModule

Returns

UtilityComparer.UtilityTracker

HighestUtility()

public float HighestUtility()

Returns

float

HighestUtilityModule()

public AIModule HighestUtilityModule()

Returns

AIModule

Update()

public override void Update()