// Allows developers to add traits that will be combined into // personalities. // f - A function to run on Object o and return a numerical amount // representing how much this trait would favor the given object, // on a scale of -100 to 100. public void AddTrait(LikeabilityFunction func) { possible_traits.Add(new Trait(func)); }
public Trait(LikeabilityFunction func) { foo = func; }