Пример #1
0
        public override void Join(Game game)
        {
            if (game.TooManyMonsters())
            {
                throw new MapIsFullException("There are too many monsters, join as survivor or wait");
            }

            Map = game.Map;
            Map.AddPlayerToEmptyPosition(this);
            Map.MonsterCount++;
            NotifyServer += game.Notify;
            NotifyServer(this.ToString() + " joined the game");
            SpotNearbyPlayers();
        }