Class TestUrgeBase
The base test urge.
Inherited Members
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 SourceTestUrgeBase(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 SourceActionType
Gets the action type.
Declaration
public TestBotActionType ActionType { get; }
Property Value
Type | Description |
---|---|
TestBotActionType |
Methods
View SourceRun(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. |