Class UrgeResult
A helper class used to construct instances of UrgeResult<TState, TBot, TAction>.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Core.dll
Syntax
public static class UrgeResult
Methods
View SourceCreate<TState, TBot, TAction>(IUrge<TState, TBot, TAction>, IRecommendedAction<TAction>)
Creates a new urge result from an urge and recommended action.
Declaration
public static UrgeResult<TState, TBot, TAction> Create<TState, TBot, TAction>(IUrge<TState, TBot, TAction> urge, IRecommendedAction<TAction> action) where TBot : IAutomatedBot<TAction>
Parameters
Type | Name | Description |
---|---|---|
IUrge<TState, TBot, TAction> | urge | The urge. |
IRecommendedAction<TAction> | action | The recommended action. |
Returns
Type | Description |
---|---|
UrgeResult<TState, TBot, TAction> | A new urge result. |
Type Parameters
Name | Description |
---|---|
TState | The game state type. |
TBot | The bot type. |
TAction | The action type. |