public BoidActionSeparation(World world,int id)
 {
     _world = world;
     _id = id;
     _flee = new BoidActionFlee();
     _wander = new BoidActionWander();
 }
示例#2
0
 public BoidControl(Vector2 startPoint,int Id)
 {
     _velocity = Vector2.Zero;
     _acceleration = Vector2.Zero;
     Position = startPoint;
     ID = Id;
     Action = new BoidActionWander();
     InitializeComponent();
 }
示例#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);
 }