Show / Hide Table of Contents

Interface IUrge<TState, TBot, TAction>

An interface for urges which recommend actions to a bot based on the game state.

Inherited Members
IUrge.Name
IUrge.Type
IUrge.IsExclusive
IEquatable<IUrge>.Equals(IUrge)
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 Source

Run(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.

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