Esempio n. 1
0
 public SkullToken(Board board, int row, int column)
 {
     piece = new TokenPiece[1];
     Cell cell = new Cell();
     cell.color = CellColor.SKULL;
     piece[0] = new TokenPiece(board, row, column, cell);
 }
Esempio n. 2
0
 public BombToken(Board board, int row, int column)
 {
     piece = new TokenPiece[1];
     Cell cell = new Cell();
     cell.color = CellColor.BOMB;
     piece[0] = new TokenPiece(board, row, column, cell);
 }
Esempio n. 3
0
 public TwoPieceToken(Board board, int row, int column, CellColor color1, CellColor color2)
 {
     piece = new TokenPiece[2];
     Cell cell1 = new Cell();
     Cell cell2 = new Cell();
     cell1.color = color1;
     cell2.color = color2;
     cell1.direction = Cell.Direction.RIGHT;
     cell2.direction = Cell.Direction.LEFT;
     piece[0] = new TokenPiece(board, row, column, cell1);
     piece[1] = new TokenPiece(board, row, column + 1, cell2);
     orientation = 0;
 }
Esempio n. 4
0
 public ThreePieceElbowToken(Board board, int row, int column, CellColor color1, CellColor color2, CellColor color3)
 {
     piece = new TokenPiece[3];
     Cell cell1 = new Cell();
     Cell cell2 = new Cell();
     Cell cell3 = new Cell();
     cell1.color = color1;
     cell2.color = color2;
     cell3.color = color3;
     cell1.direction = Cell.Direction.RIGHT;
     cell2.direction = Cell.Direction.LEFT | Cell.Direction.DOWN;
     cell3.direction = Cell.Direction.UP;
     piece[0] = new TokenPiece(board, row, column, cell1);
     piece[1] = new TokenPiece(board, row, column + 1, cell2);
     piece[2] = new TokenPiece(board, row + 1, column + 1, cell3);
     orientation = 0;
 }
Esempio n. 5
0
 public FourPieceZToken(Board board, int row, int column, CellColor color1, CellColor color2, CellColor color3, CellColor color4)
 {
     piece = new TokenPiece[4];
     Cell cell1 = new Cell();
     Cell cell2 = new Cell();
     Cell cell3 = new Cell();
     Cell cell4 = new Cell();
     cell1.color = color1;
     cell2.color = color2;
     cell3.color = color3;
     cell4.color = color4;
     cell1.direction = Cell.Direction.RIGHT;
     cell2.direction = Cell.Direction.LEFT | Cell.Direction.DOWN;
     cell3.direction = Cell.Direction.UP | Cell.Direction.RIGHT;
     cell4.direction = Cell.Direction.LEFT;
     piece[0] = new TokenPiece(board, row, column, cell1);
     piece[1] = new TokenPiece(board, row, column + 1, cell2);
     piece[2] = new TokenPiece(board, row + 1, column + 1, cell3);
     piece[3] = new TokenPiece(board, row + 1, column + 2, cell4);
     orientation = 0;
 }