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