Beispiel #1
0
 public void Default(Map map)
 {
     foreach (var ghost in _ghosts)
     {
         ghost.DefaultMap(map);
         ghost.StrategyGoToCorner();
     }
     _changeStateGhosts = new ChangeStateGhosts(this);
 }
Beispiel #2
0
        public MenagerGhosts(Map map, int time)
        {
            _timeFrightened = new Timer(10000);

            _ghosts = new Collection <Ghost>();
            _blinky = map.Blinky;
            _clyde  = map.Clyde;
            _inky   = map.Inky;
            _pinky  = map.Pinky;

            AddGhostsInCollection();
            SetTime(time);

            _changeStateGhosts = new ChangeStateGhosts(this);
        }