Show / Hide Table of Contents

Interface IBotBrain

The non-generic interface for a bot brain.

Inherited Members
IBasedOn<IBotBrain>.BasedOn
IBasedOn<IBotBrain>.BasedOnObject
IEquatable<IBotBrain>.Equals(IBotBrain)
IUrgeList.Urges
IUrgeList.AddUrge(IUrge)
IUrgeList.RemoveUrge(IUrge)
IUrge.Name
IUrge.Type
IUrge.IsExclusive
IEquatable<IUrge>.Equals(IUrge)
IHasParameters.Parameters
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IBotBrain : IBasedOn<IBotBrain>, IBasedOn, IEquatable<IBotBrain?>, IUrgeList, IUrge, IEquatable<IUrge?>, IHasParameters

Properties

View Source

Considerations

Gets the considerations for the brain.

Declaration
IReadOnlyCollection<IConsideration> Considerations { get; }
Property Value
Type Description
IReadOnlyCollection<IConsideration>
View Source

Logger

Gets the logger to use.

Declaration
ILogger Logger { get; }
Property Value
Type Description
ILogger

Methods

View Source

AddConsideration(IConsideration)

Adds a consideration to the list.

Declaration
void AddConsideration(IConsideration consideration)
Parameters
Type Name Description
IConsideration consideration

The consideration.

View Source

RemoveConsideration(IConsideration)

Removes a consideration from the list.

Declaration
void RemoveConsideration(IConsideration consideration)
Parameters
Type Name Description
IConsideration consideration

The consideration.

View Source

Update(object, IReadOnlyCollection<IAutomatedBot>?)

Updates the state and current action of the given bots.

Declaration
Task Update(object state, IReadOnlyCollection<IAutomatedBot>? bots = null)
Parameters
Type Name Description
object state

The game state.

IReadOnlyCollection<IAutomatedBot> bots

The bots to update. If null, all controlled bots are updated.

Returns
Type Description
Task

A task that returns after updating each bot.

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