public FilledCellUIController(ICellData cellData, ICellWindow cellWindow, IMousePopulation population, IMouseData mouse, ICatsOnCell catsOnCell, ICatsFabric catsFabric, ICatListWindow catList) : base(cellData, cellWindow) { this.population = population; this.mouse = mouse; this.catsOnCell = catsOnCell; this.catsFabric = catsFabric; this.catList = catList; }
public ICellUIController Build() { ICellWindow cellWindow = WindowsManager.Get <CellWindow>(); if (population == null) { return(new EmptyCellUIController(cellData, cellWindow)); } else if (population.isEmpty) { IAwardWindow awardWindow = WindowsManager.Get <AwardWindow>(); return(new СleanedСellUIController(awardWindow, gold, cats, this)); } ICatListWindow catList = WindowsManager.Get <CatListWindow>(); return(new FilledCellUIController(cellData, cellWindow, population, mouse, cats, catsFabric, catList)); }
public EmptyCellUIController(ICellData cellData, ICellWindow cellWindow) : base(cellData, cellWindow) { }
public CellUIController(ICellData cellData, ICellWindow cellWindow) { this.cellData = cellData; this.cellWindow = cellWindow; }