public class Board extends Object
Modifier and Type | Field and Description |
---|---|
static int |
APPEND_BELOW |
static int |
APPEND_RIGHT |
protected int |
boardWidth |
protected boolean |
showBlockIndex |
Constructor and Description |
---|
Board(int boardWidth) |
Modifier and Type | Method and Description |
---|---|
Board |
appendTableTo(int appendableBlockIndex,
int appendableDirection,
Table table) |
Board |
build() |
Block |
getBlock(int blockIndex) |
String |
getPreview() |
Board |
invalidate() |
boolean |
isBlockIndexShowing() |
Board |
setInitialBlock(Block initialBlock) |
void |
showBlockIndex(boolean showBlockIndex) |
protected boolean showBlockIndex
protected int boardWidth
public static final int APPEND_RIGHT
public static final int APPEND_BELOW
public boolean isBlockIndexShowing()
public void showBlockIndex(boolean showBlockIndex)
public Board appendTableTo(int appendableBlockIndex, int appendableDirection, Table table)
public Block getBlock(int blockIndex)
public Board build()
public String getPreview()
public Board invalidate()
Copyright © 2016–2022. All rights reserved.