public SteeringMovementModule(IAgent agent)
            : base(agent)
        {
            steeringOwner = agent as SteeringAgent;

            steeringBehaviours = new Dictionary <SteeringBehaviourId, SteeringBehaviour>();

            avoidanceBehaviour = steeringBehaviours[SteeringBehaviourId.Avoidance] = new Avoidance(steeringOwner);
        }
 public SteeringBehaviour(SteeringAgent owner)
 {
     this.owner = owner;
 }
Example #3
0
 public Idle(SteeringAgent owner)
     : base(owner)
 {
 }
 public Arrival(SteeringAgent owner)
     : base(owner)
 {
 }
Example #5
0
 public CompoundSteeringBehaviour(SteeringAgent owner)
     : base(owner)
 {
     behaviours = new List <SteeringBehaviour>(4);
     weights    = new List <float>(4);
 }
Example #6
0
 public Seek(SteeringAgent owner)
     : base(owner)
 {
 }
 public Follow(SteeringAgent owner)
     : base(owner)
 {
 }
Example #8
0
 public Pursue(SteeringAgent owner)
     : base(owner)
 {
 }
Example #9
0
 public Cohesion(SteeringAgent owner)
     : base(owner)
 {
 }
Example #10
0
 public Avoidance(SteeringAgent owner)
     : base(owner)
 {
 }
Example #11
0
 public Evade(SteeringAgent owner)
     : base(owner)
 {
 }
Example #12
0
 public Flee(SteeringAgent owner)
     : base(owner)
 {
 }
Example #13
0
 public Alignment(SteeringAgent owner)
     : base(owner)
 {
 }
 public Separation(SteeringAgent owner)
     : base(owner)
 {
 }