Show / Hide Table of Contents

Class OvermindUrgeBase

Base class for overmind urges.

Inheritance
object
UrgeBase<OvermindState, OvermindBot, OvermindAction>
OvermindUrgeBase
AssignBrain
AssignRole
LaunchGame
Implements
IUrge<OvermindState, OvermindBot, OvermindAction>
IUrge
IEquatable<IUrge>
Inherited Members
UrgeBase<OvermindState, OvermindBot, OvermindAction>.NoUrgeName
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Logger
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Name
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Type
UrgeBase<OvermindState, OvermindBot, OvermindAction>.IsExclusive
UrgeBase<OvermindState, OvermindBot, OvermindAction>.ToString()
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Equals(IUrge)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Equals(object)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.GetHashCode()
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Run(OvermindState, OvermindBot)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.GetParameter<T>(OvermindBot, string)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.GetParameter<T>(OvermindBot, IEnumerable<string>)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.TryGetParameter<T>(OvermindBot, IEnumerable<string>, out T)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.TryGetParameter<T>(OvermindBot, string, out T)
UrgeBase<OvermindState, OvermindBot, OvermindAction>.GetParameterNames(string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain.Overmind
Assembly: BotBrain.Overmind.dll
Syntax
public abstract class OvermindUrgeBase : UrgeBase<OvermindState, OvermindBot, OvermindAction>, IUrge<OvermindState, OvermindBot, OvermindAction>, IUrge, IEquatable<IUrge?>
Remarks

Initializes a new instance of the OvermindUrgeBase class.

Constructors

View Source

OvermindUrgeBase(string?, ILogger<OvermindUrgeBase>?)

Base class for overmind urges.

Declaration
protected OvermindUrgeBase(string? name = null, ILogger<OvermindUrgeBase>? logger = null)
Parameters
Type Name Description
string name

The urge name.

ILogger<OvermindUrgeBase> logger

The logger to use.

Remarks

Initializes a new instance of the OvermindUrgeBase class.

Methods

View Source

Run(OvermindState, OvermindBot)

Chooses an action and urgency of that action for the given bot and state.

Declaration
public override Task<IEnumerable<IRecommendedAction<OvermindAction>>> Run(OvermindState state, OvermindBot bot)
Parameters
Type Name Description
OvermindState state

The game state.

OvermindBot bot

The bot to control.

Returns
Type Description
Task<IEnumerable<IRecommendedAction<OvermindAction>>>

An enumerable of weighted bot actions.

Overrides
UrgeBase<OvermindState, OvermindBot, OvermindAction>.Run(OvermindState, OvermindBot)
View Source

RunSync(OvermindState, OvermindBot)

Runs the urge synchronously.

Declaration
protected virtual IEnumerable<IRecommendedAction<OvermindAction>> RunSync(OvermindState state, OvermindBot bot)
Parameters
Type Name Description
OvermindState state

The game state.

OvermindBot bot

The bot to control.

Returns
Type Description
IEnumerable<IRecommendedAction<OvermindAction>>

An enumerable of weighted bot actions.

Implements

IUrge<TState, TBot, TAction>
IUrge
IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX