/* Used on gamelogic level * Upgrade a unit on a given territory. */ public void UpgradeUnitOnTerritory(Unit Previous, Unit Upgraded, Territory T) { T.RemoveUnitFromList(Previous); UnusedUnits.Add(Previous); T.AddUnitToList(Upgraded); UnusedUnits.Remove(Upgraded); }
/* Used on gamelogic level * Use this function to place a unit on on a territory */ public void PlaceUnitOnTerritory(Territory T, Unit U) { UnusedUnits.Remove(U); T.AddUnitToList(U); }