Exemplo n.º 1
0
 public СleanedСellUIController(IAwardWindow awardWindow, IGold gold, ICatsOnCell cats, ICellUIBuilder builder)
 {
     this.awardWindow = awardWindow;
     this.gold        = gold;
     this.cats        = cats;
     this.builder     = builder;
 }
Exemplo 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));
        }