//Конструктор public Engine(int fieldWidth, int fieldHeight, int squareHeight) { this.fieldHeight = fieldHeight; this.fieldWidth = fieldWidth; this.squareHeight = squareHeight; plus = new Plus(); gameMass = new GameMass(fieldWidth,fieldHeight); squares = new List<Square>(); rand = new Random(); CreateSquareList(); NewActiveSquare(); }
//Начать новую игру public void NewGame() { gameMass = new GameMass(fieldWidth, fieldHeight); //CreateSquareList(); NewActiveSquare(); RefreshSquareList(); isStart = true; score = 0; }