Interface IObjectiveUrge<TState, TBot>
An interface for urges to support objective tracking once chosen by the brain.
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IObjectiveUrge<TState, TBot>
Type Parameters
Name | Description |
---|---|
TState | The game state type. |
TBot | The bot type. |
Methods
View SourceCanActionChange(TState, TBot)
Determines whether or not the brain must continue running the current action.
Declaration
Task<bool> CanActionChange(TState state, TBot bot)
Parameters
Type | Name | Description |
---|---|---|
TState | state | The game state. |
TBot | bot | The bot. |
Returns
Type | Description |
---|---|
Task<bool> | True if the action may change. |
PreUpdateBot(TState, TBot)
Called before the bot is updated.
Declaration
void PreUpdateBot(TState state, TBot bot)
Parameters
Type | Name | Description |
---|---|---|
TState | state | The game state. |
TBot | bot | The bot. |