Ejemplo n.º 1
0
 public void AddAttractor()
 {
     _attractors.Add(new Chemoeffector
     {
         Position = this.GetRandomPoint(),
         Strength = this.GetRandomSize(_minimumAttractorStrength, _maximumAttractorStrength)
     });
 }
Ejemplo n.º 2
0
 public void AddRepellent()
 {
     _repellents.Add(new Chemoeffector
     {
         Position = this.GetRandomPoint(),
         Strength = this.GetRandomSize(_minimumRepellentStrength, _maximumRepellentStrength),
         Heading  = this.GetRandomHeading()
     });
 }