public static bool[,] GetArrayBySymbol(PentaminoSymbols symbol) { bool[,] arr = null; switch (symbol) { case (PentaminoSymbols.F): arr = GetF(); break; case (PentaminoSymbols.I): arr = GetI(); break; case (PentaminoSymbols.L): arr = GetL(); break; case (PentaminoSymbols.N): arr = GetN(); break; case (PentaminoSymbols.P): arr = GetP(); break; case (PentaminoSymbols.T): arr = GetT(); break; case (PentaminoSymbols.U): arr = GetU(); break; case (PentaminoSymbols.V): arr = GetV(); break; case (PentaminoSymbols.W): arr = GetW(); break; case (PentaminoSymbols.X): arr = GetX(); break; case (PentaminoSymbols.Y): arr = GetY(); break; case (PentaminoSymbols.Z): arr = GetZ(); break; } return(arr); }
public Figure(PentaminoSymbols symbol) { Symbol = symbol; //Задаем массив SymbolArray = PentaminoFigurePattern.GetArrayBySymbol(symbol); SetRotateToFullTurn(); }