Exemplo n.º 1
0
 public BoidActionSeparation(World world,int id)
 {
     _world = world;
     _id = id;
     _flee = new BoidActionFlee();
     _wander = new BoidActionWander();
 }
Exemplo n.º 2
0
 public BoidControl(Vector2 startPoint,int Id)
 {
     _velocity = Vector2.Zero;
     _acceleration = Vector2.Zero;
     Position = startPoint;
     ID = Id;
     Action = new BoidActionWander();
     InitializeComponent();
 }
Exemplo n.º 3
0
 public BoidControl(Vector2 startPoint, int Id, Color boidColor)
 {
     _velocity = Vector2.Zero;
     _acceleration = Vector2.Zero;
     Position = startPoint;
     ID = Id;
     Action = new BoidActionWander();
     InitializeComponent();
     boidEllipse.Fill = new SolidColorBrush(boidColor);
 }