Exemplo n.º 1
0
    private void BuildTroopList(FactoryDetail targetFactory)
    {
        var troopToSend = BuildTroop(targetFactory);

        if (troopToSend != null)
        {
            TroopListToSend.Add(troopToSend);
        }
    }
Exemplo n.º 2
0
    private void BuildTroopList(IOrderedEnumerable <FactoryDetail> productiveFactories)
    {
        foreach (var productiveFactory in productiveFactories)
        {
            var troopToSend = BuildTroop(productiveFactory);

            if (troopToSend != null)
            {
                TroopListToSend.Add(troopToSend);
            }
        }
    }
Exemplo n.º 3
0
 private void AddTroopToSendList(FactoryDetail sourceFactory, FactoryDetail targetFactory)
 {
     TroopListToSend.Add(BuildTroop(sourceFactory, targetFactory));
 }