//Bewegung rechts public void CurrTetraminoMoveReight() { Point Position = currTetramino.getCurrPosition(); Point[] Shape = currTetramino.getCurrShape(); bool move = true; currTetraminoErase(); foreach (Point S in Shape) { //Bewegung aus Spielfeld heraus? if (((int)(S.X + Position.X) + ((Cols / 2) - 1) + 1) >= Cols) { move = false; } //anderer Stein im Weg (Prüfung anhand der Farbe)? else if (BlockControls[((int)(S.X + Position.X) + ((Cols / 2) - 1) + 1), (int)(S.Y + Position.Y) + 2].Background != NoBrush) { move = false; } } //wenn Bewegung möglich -> bewegen if (move) { currTetramino.movRight(); currTetraminoDraw(); } //ansonsten Stein unverändert darstellen else { currTetraminoDraw(); } }