Class FakeUrge2
A fake urge used for testing subclasses.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Tests
Assembly: BotBrain.Core.Tests.dll
Syntax
public class FakeUrge2 : FakeUrge, IUrge<bool, FakeBot<FakeBotAction>, FakeBotAction>, IUrge, IEquatable<IUrge?>Properties
View SourceRunCount
Gets a mapping from bot to the number of times this urge has run.
Declaration
public IDictionary<FakeBot<FakeBotAction>, int> RunCount { get; }Property Value
| Type | Description | 
|---|---|
| IDictionary<FakeBot<FakeBotAction>, int> | 
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. |