Show / Hide Table of Contents

Class TestUrgeBase

The base test urge.

Inheritance
object
UrgeBase<bool, TestAutomatedBot, TestBotAction>
TestUrgeBase
Attack
Defend
Move
Implements
IUrge<bool, TestAutomatedBot, TestBotAction>
IUrge
IEquatable<IUrge>
Inherited Members
UrgeBase<bool, TestAutomatedBot, TestBotAction>.NoUrgeName
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Logger
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Name
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Type
UrgeBase<bool, TestAutomatedBot, TestBotAction>.IsExclusive
UrgeBase<bool, TestAutomatedBot, TestBotAction>.ToString()
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Equals(IUrge)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Equals(object)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.GetHashCode()
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Run(bool, TestAutomatedBot)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.GetParameter<T>(TestAutomatedBot, string)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.GetParameter<T>(TestAutomatedBot, IEnumerable<string>)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.TryGetParameter<T>(TestAutomatedBot, IEnumerable<string>, out T)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.TryGetParameter<T>(TestAutomatedBot, string, out T)
UrgeBase<bool, TestAutomatedBot, TestBotAction>.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.Samples.EnumBased
Assembly: BotBrain.Samples.dll
Syntax
public abstract class TestUrgeBase : UrgeBase<bool, TestAutomatedBot, TestBotAction>, IUrge<bool, TestAutomatedBot, TestBotAction>, IUrge, IEquatable<IUrge?>

Constructors

View Source

TestUrgeBase(TestBotActionType)

Initializes a new instance of the TestUrgeBase class.

Declaration
protected TestUrgeBase(TestBotActionType actionType)
Parameters
Type Name Description
TestBotActionType actionType

The action type.

Properties

View Source

ActionType

Gets the action type.

Declaration
public TestBotActionType ActionType { get; }
Property Value
Type Description
TestBotActionType

Methods

View Source

Run(bool, TestAutomatedBot)

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

Declaration
public override Task<IEnumerable<IRecommendedAction<TestBotAction>>> Run(bool state, TestAutomatedBot bot)
Parameters
Type Name Description
bool state

The game state.

TestAutomatedBot bot

The bot to control.

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

An enumerable of weighted bot actions.

Overrides
UrgeBase<bool, TestAutomatedBot, TestBotAction>.Run(bool, TestAutomatedBot)

Implements

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