Esempio n. 1
0
        public ITank GenerateSecondPlayer()
        {
            FigureTexture secondPlayerBody = new FigureTexture(this.boolTemplateProvider.GetBoolTemplate("secondTank"), '█', ConsoleColor.Magenta);

            this.secondPlayer = tankFactory.CreateTank(Constants.SecondPlayerTankStartX, Constants.SecondPlayerTankStartY,
                                                       secondPlayerBody);

            FillField(Constants.SecondPlayerTankStartX, Constants.SecondPlayerTankStartY);

            return(secondPlayer);
        }
Esempio n. 2
0
        public ITank GenerateFirstPlayer()
        {
            FigureTexture firstPlayerBody = new FigureTexture(this.boolTemplateProvider.GetBoolTemplate("tank"), '█', ConsoleColor.Green);

            this.player = this.tankFactory.CreateTank(Constants.FirstPlayerTankStartX, Constants.FirstPlayerTankStartY,
                                                      firstPlayerBody);

            FillField(Constants.FirstPlayerTankStartX, Constants.FirstPlayerTankStartY);

            return(this.player);
        }