Show / Hide Table of Contents

Class LaunchGame

The overmind urge responsible for launching games.

Inheritance
object
UrgeBase<OvermindState, OvermindBot, OvermindAction>
OvermindUrgeBase
LaunchGame
LaunchTestGame
Implements
IUrge<OvermindState, OvermindBot, OvermindAction>
IUrge
IEquatable<IUrge>
Inherited Members
OvermindUrgeBase.Run(OvermindState, OvermindBot)
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 class LaunchGame : OvermindUrgeBase, IUrge<OvermindState, OvermindBot, OvermindAction>, IUrge, IEquatable<IUrge?>
Remarks

Initializes a new instance of the LaunchGame class.

Constructors

View Source

LaunchGame(string?, ILogger<LaunchGame>?)

The overmind urge responsible for launching games.

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

The urge name.

ILogger<LaunchGame> logger

The logger to use.

Remarks

Initializes a new instance of the LaunchGame class.

Properties

View Source

GameStateName

Gets a description of the game state type.

Declaration
protected virtual string GameStateName { get; }
Property Value
Type Description
string

Methods

View Source

CreateGameStateAsync(IDevice, IRoleBasedScenario, ILaunchGameRole)

Creates the game state.

Declaration
protected virtual Task<object> CreateGameStateAsync(IDevice device, IRoleBasedScenario scenario, ILaunchGameRole role)
Parameters
Type Name Description
IDevice device

The device to use.

IRoleBasedScenario scenario

The scenario.

ILaunchGameRole role

The role.

Returns
Type Description
Task<object>

A state object.

View Source

PerformLaunch(IDevice, IRoleBasedScenario, ILaunchGameRole)

Launches a game.

Declaration
protected virtual IDeviceOperation PerformLaunch(IDevice device, IRoleBasedScenario scenario, ILaunchGameRole role)
Parameters
Type Name Description
IDevice device

The device to use.

IRoleBasedScenario scenario

The scenario.

ILaunchGameRole role

The role.

Returns
Type Description
IDeviceOperation

A device operation to launch a game.

View Source

RunSync(OvermindState, OvermindBot)

Runs the urge synchronously.

Declaration
protected override 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.

Overrides
OvermindUrgeBase.RunSync(OvermindState, OvermindBot)

Implements

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