public ReverseLBlock(int positionX, int positionY) { var middleLetters = LetterGenerator.GetSubstringFromCommands(3); var bottomLetters = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, middleLetters[2]); blockLetters = new char[, ] { { ' ', middleLetters[0], ' ' }, { ' ', middleLetters[1], ' ' }, { bottomLetters[1], middleLetters[2], ' ' } }; localOriginX = 1; localOriginY = 1; upperLeftCornerX = 0; upperleftCornerY = 0; this.positionX = positionX; this.positionY = positionY; }
public LongBlock(int positionX, int positionY) { var substrLetters = LetterGenerator.GetSubstringFromCommands(4); blockLetters = new char[, ] { { ' ', ' ', ' ', ' ', ' ' }, { ' ', ' ', ' ', ' ', ' ' }, { ' ', substrLetters[0], substrLetters[1], substrLetters[2], substrLetters[3] }, { ' ', ' ', ' ', ' ', ' ' }, { ' ', ' ', ' ', ' ', ' ' } }; localOriginX = 2; localOriginY = 2; upperLeftCornerX = 2; upperleftCornerY = 1; this.positionX = positionX; this.positionY = positionY; }
public SquareBlock(int positionX, int positionY) { var topLetters = LetterGenerator.GetSubstringFromCommands(2); var leftLetters = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, topLetters[0]); var bottomLetters = LetterGenerator.GetSubstringFromCommandsIncludingLetterAtStart(2, leftLetters[1]); blockLetters = new char[, ] { { topLetters[0], topLetters[1] }, { bottomLetters[0], bottomLetters[1] } }; localOriginX = 0; localOriginY = 0; upperLeftCornerX = 0; upperleftCornerY = 0; this.positionX = positionX; this.positionY = positionY; RandomizeLetters(); }