Interface IUrge<TState, TBot, TAction>
An interface for urges which recommend actions to a bot based on the game state.
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IUrge<TState, TBot, TAction> : IUrge, IEquatable<IUrge?> where TBot : IAutomatedBot<TAction>
Type Parameters
| Name | Description |
|---|---|
| TState | The game state type. |
| TBot | The bot type. |
| TAction | The action type. |
Methods
View SourceRun(TState, TBot)
Chooses an action and urgency of that action for the given bot and state.
Declaration
Task<IEnumerable<IRecommendedAction<TAction>>> Run(TState state, TBot bot)
Parameters
| Type | Name | Description |
|---|---|---|
| TState | state | The game state. |
| TBot | bot | The bot to control. |
Returns
| Type | Description |
|---|---|
| Task<IEnumerable<IRecommendedAction<TAction>>> | An enumerable of weighted bot actions. |