Crystal AI
1.0.0
|
Interface for Selectors. Selectors are functions that accept a vector of T:Crystal.Utilitys and return an index that corresponds to the selected T:Crystal.Utility. More...
Public Member Functions | |
int | Select (ICollection< Utility > elements) |
Selects a T:Crystal.Utility from the given set and returns its index. More... | |
Public Member Functions inherited from Crystal.IAiPrototype< ISelector > | |
T | Clone () |
Creates a new instance of the implementing class. Note that the semantics here are somewhat vague, however, by convention the "Prototype Pattern" uses a "Clone" function. Note that this may have very different semantics when compared with either shallow or deep cloning. When implementing this remember to include only the defining characteristics of the class and not its state! More... | |
Interface for Selectors. Selectors are functions that accept a vector of T:Crystal.Utilitys and return an index that corresponds to the selected T:Crystal.Utility.
int Crystal.ISelector.Select | ( | ICollection< Utility > | elements | ) |
Selects a T:Crystal.Utility from the given set and returns its index.
elements | The elements. |
Implemented in Crystal.WeightedRandomSelector, Crystal.SequentialSelector, Crystal.MaxUtilitySelector, and Crystal.RandomSelector.