Class UrgeWeight
A static class containing urge weight constants.
Inherited Members
Namespace: Microsoft.XboxStudios.BotBrain.Considerations
Assembly: BotBrain.Core.dll
Syntax
public static class UrgeWeight
Fields
View SourceDefaultMaximumWeight
The default maximum weight for any urge is 1.
Declaration
public const float DefaultMaximumWeight = 1
Field Value
Type | Description |
---|---|
float |
DefaultWeight
The default weight for all urges is 1. Larger values will increase the likelihood of choosing the urge, and values between 0 and 1 will decrease this likelihood.
Declaration
public const float DefaultWeight = 1
Field Value
Type | Description |
---|---|
float |
MaxWeightParameterName
The fully qualified parameter name for customizing the maximum weight.
Declaration
public static readonly string MaxWeightParameterName
Field Value
Type | Description |
---|---|
string |
Methods
View SourceGetMaxWeight(IHasParameters)
Gets the maximum urge weight.
Declaration
public static float GetMaxWeight(IHasParameters hasParameters)
Parameters
Type | Name | Description |
---|---|---|
IHasParameters | hasParameters | The object containing parameter values. |
Returns
Type | Description |
---|---|
float | The maximum urge weight. |
WeightParameterNames(IUrge)
Gets the parameter names to check when determining the weight of an urge.
Declaration
public static IEnumerable<string> WeightParameterNames(IUrge urge)
Parameters
Type | Name | Description |
---|---|---|
IUrge | urge | The urge. |
Returns
Type | Description |
---|---|
IEnumerable<string> | An enumeration of parameter names. |