Ejemplo n.º 1
0
 private void assignAttacker(LandTerritory passedTerritory)
 {
     attackingInfantry = 0;
     attackingKnights = 0;
     main.takeTurn.DisableAllTerritoryButtons();
     foreach (string s in passedTerritory.getConnections())
     {
         main.resources.allLandConnections[s.Trim()].getButton().IsEnabled = true;
     }
     passedTerritory.getButton().IsEnabled = true;
     passedTerritory.getButton().Background = System.Windows.Media.Brushes.DarkOliveGreen;
     passedTerritory.getButton().Content = "Click to cancel";
     attacker = passedTerritory;
     attack = false;
 }