Interface IBotBrain
The non-generic interface for a bot brain.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain
Assembly: BotBrain.Abstractions.dll
Syntax
public interface IBotBrain : IBasedOn<IBotBrain>, IBasedOn, IEquatable<IBotBrain?>, IUrgeList, IUrge, IEquatable<IUrge?>, IHasParameters
Properties
View SourceConsiderations
Gets the considerations for the brain.
Declaration
IReadOnlyCollection<IConsideration> Considerations { get; }
Property Value
Type | Description |
---|---|
IReadOnlyCollection<IConsideration> |
Logger
Gets the logger to use.
Declaration
ILogger Logger { get; }
Property Value
Type | Description |
---|---|
ILogger |
Methods
View SourceAddConsideration(IConsideration)
Adds a consideration to the list.
Declaration
void AddConsideration(IConsideration consideration)
Parameters
Type | Name | Description |
---|---|---|
IConsideration | consideration | The consideration. |
RemoveConsideration(IConsideration)
Removes a consideration from the list.
Declaration
void RemoveConsideration(IConsideration consideration)
Parameters
Type | Name | Description |
---|---|---|
IConsideration | consideration | The consideration. |
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. |