Class LaunchGame
A test urge that launches a game if it isn't running.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Samples.ClassBased.Urges
Assembly: BotBrain.Samples.dll
Syntax
[UsesParameter(new string[] { "ApplicationName" })]
[UsesParameter(new string[] { "LaunchArguments" })]
public class LaunchGame : UrgeBase<TestGameState, TestAutomatedBot, TestAction>, IUrge<TestGameState, TestAutomatedBot, TestAction>, IUrge, IEquatable<IUrge?>
Methods
View SourceRun(TestGameState, TestAutomatedBot)
Chooses an action and urgency of that action for the given bot and state.
Declaration
public override Task<IEnumerable<IRecommendedAction<TestAction>>> Run(TestGameState state, TestAutomatedBot bot)
Parameters
Type | Name | Description |
---|---|---|
TestGameState | state | The game state. |
TestAutomatedBot | bot | The bot to control. |
Returns
Type | Description |
---|---|
Task<IEnumerable<IRecommendedAction<TestAction>>> | An enumerable of weighted bot actions. |