/** * Unit09v80 Piece7.java 07-25-10 by Leon Schram **/ class Piece7 { private static int[][] pieceN = {{0,7}, {7,7}, {7,0}}; private static int[][] pieceE = {{7,7,0}, {0,7,7}}; private static int[][] pieceS = {{0,7}, {7,7}, {7,0}}; private static int[][] pieceW = {{7,7,0}, {0,7,7}}; public static int[][] getShape(int direction) { int[][] temp = null; switch (direction) { case 1 : temp = pieceN; break; case 2 : temp = pieceE; break; case 3 : temp = pieceS; break; case 4 : temp = pieceW; break; } return temp; } }