示例#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();
            }
        }
 public Simulation(MapEvent mapEvent, bool isDryRun)
 {
     _mapEvent = mapEvent;
     IsDryRun  = isDryRun;
     Guid      = Guid.NewGuid();
 }