Class FakeModifyBrainUrge
Inheritance
FakeModifyBrainUrge
  Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Tests
Assembly: BotBrain.Core.Tests.dll
Syntax
public class FakeModifyBrainUrge : FakeUrge, IUrge<bool, FakeBot<FakeBotAction>, FakeBotAction>, IUrge, IEquatable<IUrge?>Constructors
View SourceFakeModifyBrainUrge(FakeModifyBrainAction)
Declaration
public FakeModifyBrainUrge(FakeModifyBrainAction action)Parameters
| Type | Name | Description | 
|---|---|---|
| FakeModifyBrainAction | action | 
Properties
View SourceAction
Declaration
public FakeModifyBrainAction Action { get; }Property Value
| Type | Description | 
|---|---|
| FakeModifyBrainAction | 
Methods
View SourceRunImpl(bool, FakeBot<FakeBotAction>)
Runs the urge given the existing game state, returning one or more weighted bot actions.
Declaration
protected override IEnumerable<IRecommendedAction<FakeBotAction>> RunImpl(bool state, FakeBot<FakeBotAction> bot)Parameters
| Type | Name | Description | 
|---|---|---|
| bool | state | The game state. | 
| FakeBot<FakeBotAction> | bot | The bot to control. | 
Returns
| Type | Description | 
|---|---|
| IEnumerable<IRecommendedAction<FakeBotAction>> | An enumeration of weighted bot actions. |