Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.awt.Color;
- public class Rubic {
- private Color[][][] Cell;
- private Color[] CellMainColor = new Color[6];
- private int rublcFace[] = new int [6];
- public Rubic() {
- rublcFace[0] = 0;
- rublcFace[1] = 1;
- rublcFace[2] = 2;
- rublcFace[3] = 3;
- rublcFace[4] = 4;
- rublcFace[5] = 5;
- this.Cell = new Color[3][3][6];
- this.CellMainColor[0] = Color.white;
- this.CellMainColor[1] = Color.red;
- this.CellMainColor[2] = Color.green;
- this.CellMainColor[3] = Color.blue;
- this.CellMainColor[4] = Color.orange;
- this.CellMainColor[5] = Color.yellow;
- for(int k=0; k<6; k++) {
- for(int j=0; j<3; j++) {
- for(int i=0; i<3; i++) {
- this.Cell[i][j][k] = this.CellMainColor[k];
- }
- }
- }
- }
- /**
- * @return the Cell
- */
- public Color getSpecificCell(int i,int j,int k) {
- return this.Cell[i][j][k];
- }
- public Color[][][] getCell() {
- return Cell;
- }
- /**
- * @param Cell the Cell to set
- */
- public void setCell(Color[][][] Cell) {
- this.Cell = Cell;
- }
- /**
- * @return the CellMainColor
- */
- public Color[] getCellMainColor() {
- return CellMainColor;
- }
- /**
- * @param CellMainColor the CellMainColor to set
- */
- public void setCellMainColor(Color[] CellMainColor) {
- this.CellMainColor = CellMainColor;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement