Esempio n. 1
0
    public void PrintMap()
    {
        return;

        Vector3Int centerPosition = _MapProxy.ViewPositionToMap(new Vector3(0.5f, 0.5f, 0));

        showBasePoint = centerPosition - _YDelta * (maxShowY / 2) - _XDelta * (maxShowX / 2);

        //打印地图
        _Printer.PrintMap(_Maps, showBasePoint.x, maxShowX, showBasePoint.z, maxShowY);
    }
Esempio n. 2
0
        private void PrintRoundInfo(IEnvironment environment)
        {
            Console.WriteLine($"Allies: {environment.Allies.Count} " +
                              $"\nAdversaries: {environment.Adversaries.Count}");
            environment.OutFile.WriteLine($"Allies: {environment.Allies.Count} " +
                                          $"\nAdversaries: {environment.Adversaries.Count}");
            foreach (var ally in environment.Allies)
            {
                Console.WriteLine(
                    $"Ally {environment.Allies.IndexOf(ally)} Casualties: {ally.Fatalities} Initial Troop Count: {ally.TroopCount}");
                environment.OutFile.WriteLine($"Ally {environment.Allies.IndexOf(ally)} Casualties: {ally.Fatalities} Initial Troop Count: {ally.TroopCount}");
            }
            foreach (var adversary in environment.Adversaries)
            {
                Console.WriteLine(
                    $"Adversary {environment.Adversaries.IndexOf(adversary)} Casualties: {adversary.Fatalities} Initial Troop Count: {adversary.TroopCount}");
                environment.OutFile.WriteLine($"Adversary {environment.Adversaries.IndexOf(adversary)} Casualties: {adversary.Fatalities} Initial Troop Count: {adversary.TroopCount}");
            }

            _mapPritner.PrintMap(environment.Map, environment.Allies, environment.Adversaries, environment.OutFile);
        }