Exemplo n.º 1
0
        public static void RunSimulation(List <Troop> army1, List <Troop> army2)
        {
            var mapEvent   = new MapEvent(army1, army2);
            var simulation = new Simulation(mapEvent, true);

            while (simulation.BattleState == BattleState.None)
            {
                simulation.SimulateBattle();
            }
        }
Exemplo n.º 2
0
 public Simulation(MapEvent mapEvent, bool isDryRun)
 {
     _mapEvent = mapEvent;
     IsDryRun  = isDryRun;
     Guid      = Guid.NewGuid();
 }