コード例 #1
0
 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);
 }