Esempio n. 1
0
 // 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));
 }
Esempio n. 2
0
 // 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));
 }
Esempio n. 3
0
 public Trait(LikeabilityFunction func)
 {
     foo = func;
 }
Esempio n. 4
0
 public Trait(LikeabilityFunction func)
 {
     foo = func;
 }