Show / Hide Table of Contents

Class UrgeWeight

A static class containing urge weight constants.

Inheritance
object
UrgeWeight
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Microsoft.XboxStudios.BotBrain.Considerations
Assembly: BotBrain.Core.dll
Syntax
public static class UrgeWeight

Fields

View Source

DefaultMaximumWeight

The default maximum weight for any urge is 1.

Declaration
public const float DefaultMaximumWeight = 1
Field Value
Type Description
float
View Source

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
View Source

MaxWeightParameterName

The fully qualified parameter name for customizing the maximum weight.

Declaration
public static readonly string MaxWeightParameterName
Field Value
Type Description
string

Methods

View Source

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

View Source

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.

  • View Source
In this article
Back to top Generated by DocFX