Show / Hide Table of Contents

Class BotBrainUrgeResult<TState, TBot, TAction>

Represents a weighted urge result and the considerations involved in calculating its urgency.

Inheritance
object
BotBrainUrgeResult<TState, TBot, TAction>
Implements
IBotBrainUrgeResult
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public class BotBrainUrgeResult<TState, TBot, TAction> : IBotBrainUrgeResult where TBot : IAutomatedBot<TAction>
Type Parameters
Name Description
TState

The game state type.

TBot

The bot type.

TAction

The action type.

Remarks

Initializes a new instance of the BotBrainUrgeResult<TState, TBot, TAction> class.

Constructors

View Source

BotBrainUrgeResult(UrgeResult<TState, TBot, TAction>, double, IEnumerable<KeyValuePair<IConsideration<TState, TBot, TAction>, ConsiderationResult>>)

Represents a weighted urge result and the considerations involved in calculating its urgency.

Declaration
public BotBrainUrgeResult(UrgeResult<TState, TBot, TAction> result, double weight, IEnumerable<KeyValuePair<IConsideration<TState, TBot, TAction>, ConsiderationResult>> considerations)
Parameters
Type Name Description
UrgeResult<TState, TBot, TAction> result

The underlying result.

double weight

The weight for the combined urge and action.

IEnumerable<KeyValuePair<IConsideration<TState, TBot, TAction>, ConsiderationResult>> considerations

A mapping of the considerations involved to their results.

Remarks

Initializes a new instance of the BotBrainUrgeResult<TState, TBot, TAction> class.

Properties

View Source

Considerations

Gets a mapping of the considerations involved to their results.

Declaration
public IReadOnlyDictionary<IConsideration<TState, TBot, TAction>, ConsiderationResult> Considerations { get; }
Property Value
Type Description
IReadOnlyDictionary<IConsideration<TState, TBot, TAction>, ConsiderationResult>
View Source

Result

Gets the underlying urge result.

Declaration
public UrgeResult<TState, TBot, TAction> Result { get; }
Property Value
Type Description
UrgeResult<TState, TBot, TAction>
View Source

Weight

Gets the weight for the combined urge and action.

Declaration
public double Weight { get; }
Property Value
Type Description
double

Methods

View Source

ToString()

Returns a string that represents the current object.

Declaration
public override string ToString()
Returns
Type Description
string

A string that represents the current object.

Overrides
object.ToString()

Implements

IBotBrainUrgeResult
  • View Source
In this article
Back to top Generated by DocFX