Class BotBrainUrgeResult<TState, TBot, TAction>
Represents a weighted urge result and the considerations involved in calculating its urgency.
Implements
Inherited Members
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 SourceBotBrainUrgeResult(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 SourceConsiderations
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> |
Result
Gets the underlying urge result.
Declaration
public UrgeResult<TState, TBot, TAction> Result { get; }
Property Value
| Type | Description |
|---|---|
| UrgeResult<TState, TBot, TAction> |
Weight
Gets the weight for the combined urge and action.
Declaration
public double Weight { get; }
Property Value
| Type | Description |
|---|---|
| double |
Methods
View SourceToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |