private void SetYieldDisplay(IHexCell cell) { var cellOwner = CellPossessionCanon.GetOwnerOfPossession(cell); if (cellOwner != null) { YieldDisplay.DisplaySummary(GenerationLogic.GetYieldOfCellForCity(cell, cellOwner)); } else { YieldDisplay.DisplaySummary(CellYieldLogic.GetYieldOfCell(cell, GameCore.ActiveCiv)); } }
public YieldSummary GetYieldOfCellForCity(IHexCell cell, ICity city) { if (cell == null) { throw new ArgumentNullException("slot"); } else if (city == null) { throw new ArgumentNullException("city"); } ICivilization owner = CityPossessionCanon.GetOwnerOfPossession(city); return(CellYieldLogic.GetYieldOfCell(cell, owner) * GetMultiplier(city)); }