Esempio n. 1
0
        public AnimalStatePatrol(AnimalView view) : base(view)
        {
            _positionsCount = 5;

            for (int i = 0; i < _positionsCount; i++)
            {
                _positions.Add(Utils.RandomFarmLocation);
            }
        }
Esempio n. 2
0
 private void OnAnimalEnter(AnimalView obj)
 {
     Mediator.AddAnimalToGroup(obj);
 }
Esempio n. 3
0
 private void OnAnimalExit(AnimalView obj)
 {
     // TODO: MS: Handle the case of Scatering when there is hurdle in the path.
 }
Esempio n. 4
0
 public AnimalStateFollow(AnimalView view) : base(view)
 {
 }
Esempio n. 5
0
 public AnimalStateIdle(AnimalView view) : base(view)
 {
 }
Esempio n. 6
0
 protected AnimalState(AnimalView view)
 {
     this.View = view;
 }
        private void AddAnimalToGroup(AnimalView animalView)
        {
            AnimalRemoteDataModel model = (AnimalRemoteDataModel)animalView.Model;

            AddAnimalToGroupSignal.AddAnimal(SignalBus, model);
        }