public Engine() { this.field = new TetrisField(); this.information = new GameInformation(); this.drawer = new Drawer(this.field, this.information); this.figures = new Figures(); this.controller = new Controller(this.field); this.frame = 1; this.framesPerSecond = 16; this.currentRow = 1; this.currentCol = 4; this.currentFigures = new Queue <bool[, ]>(); }
public Drawer(ITetrisField field, IGameInformable information) { this.configurator = new ConsoleConfigurator(this.field); this.field = field; this.information = information; }