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;
 }
Esempio n. 2
0
        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));
        }
Esempio n. 3
0
 public EmptyCellUIController(ICellData cellData, ICellWindow cellWindow)
     : base(cellData, cellWindow)
 {
 }
Esempio n. 4
0
 public CellUIController(ICellData cellData, ICellWindow cellWindow)
 {
     this.cellData   = cellData;
     this.cellWindow = cellWindow;
 }