public override void AddPlayer()
        {
            ILabyrinthNav navi;
            if (this.detailsConfiguration.LabyrinthNavigation != null)
            {
                navi = this.detailsConfiguration.LabyrinthNavigation;
            }
            else
            {
                navi = new LabyrinthNavigation(this.labyrinth);
            }

            var player = new PlayerPosition(
                this.detailsConfiguration.PlayerNick
                , navi
                , this.detailsConfiguration.PlayerVisualization
                , this.detailsConfiguration.PlayerForegroundColor
                , this.detailsConfiguration.PlayerBackgroundColor);

            Position startPosition = this.labyrinth.StartPosition;
            this.labyrinth[startPosition] = player;
        }
示例#2
0
        public override void AddPlayer()
        {
            ILabyrinthNav navi;

            if (this.detailsConfiguration.LabyrinthNavigation != null)
            {
                navi = this.detailsConfiguration.LabyrinthNavigation;
            }
            else
            {
                navi = new LabyrinthNavigation(this.labyrinth);
            }

            var player = new PlayerPosition(
                this.detailsConfiguration.PlayerNick
                , navi
                , this.detailsConfiguration.PlayerVisualization
                , this.detailsConfiguration.PlayerForegroundColor
                , this.detailsConfiguration.PlayerBackgroundColor);

            Position startPosition = this.labyrinth.StartPosition;

            this.labyrinth[startPosition] = player;
        }