Show / Hide Table of Contents

Class LaunchGame

A test urge that launches a game if it isn't running.

Inheritance
object
UrgeBase<TestGameState, TestAutomatedBot, TestAction>
LaunchGame
Implements
IUrge<TestGameState, TestAutomatedBot, TestAction>
IUrge
IEquatable<IUrge>
Inherited Members
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.NoUrgeName
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Logger
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Name
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Type
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.IsExclusive
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.ToString()
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Equals(IUrge)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Equals(object)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.GetHashCode()
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Run(TestGameState, TestAutomatedBot)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.GetParameter<T>(TestAutomatedBot, string)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.GetParameter<T>(TestAutomatedBot, IEnumerable<string>)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.TryGetParameter<T>(TestAutomatedBot, IEnumerable<string>, out T)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.TryGetParameter<T>(TestAutomatedBot, string, out T)
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.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.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 Source

Run(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.

Overrides
UrgeBase<TestGameState, TestAutomatedBot, TestAction>.Run(TestGameState, TestAutomatedBot)

Implements

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