Example #1
0
File: Boid.cs Project: r0588667/VGG
 public Boid(World world, Vector2D position, BoidSpecies species)
 {
     this.World    = world;
     this.Position = Cell.Create(position);
     this.Velocity = Cell.Create(new Vector2D(0, 0));
     this.Species  = species;
     this.AI       = species.CreateAI(this);
     this.Bindings = new ParameterBindings("Boid", species.Bindings);
 }
Example #2
0
 public Counter()
 {
     this.Current = Cell.Create(0);
 }