public final class Block extends Object
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_CENTRE |
static int |
BLOCK_LEFT |
static int |
BLOCK_RIGHT |
static int |
DATA_BOTTOM_LEFT |
static int |
DATA_BOTTOM_MIDDLE |
static int |
DATA_BOTTOM_RIGHT |
static int |
DATA_CENTER |
static int |
DATA_MIDDLE_LEFT |
static int |
DATA_MIDDLE_RIGHT |
static int |
DATA_TOP_LEFT |
static int |
DATA_TOP_MIDDLE |
static int |
DATA_TOP_RIGHT |
Constructor and Description |
---|
Block(Board board,
int width,
int height) |
Block(Board board,
int width,
int height,
String data) |
Block(Board board,
int width,
int height,
String data,
Block rightBlock,
Block belowBlock) |
Modifier and Type | Method and Description |
---|---|
Block |
allowGrid(boolean allowGrid) |
protected Block |
build() |
boolean |
equals(Object block) |
Block |
getBelowBlock() |
int |
getBlockAlign() |
protected List<wagu.Charr> |
getChars() |
String |
getData() |
int |
getDataAlign() |
int |
getHeight() |
protected int |
getIndex() |
Block |
getMostBelowBlock() |
Block |
getMostRightBlock() |
static int |
getNextIndex() |
String |
getPreview() |
Block |
getRightBlock() |
int |
getWidth() |
protected int |
getX() |
protected int |
getY() |
int |
hashCode() |
protected Block |
invalidate() |
boolean |
isGridAllowed() |
Block |
setBelowBlock(Block belowBlock) |
Block |
setBlockAlign(int blockAlign) |
Block |
setData(String data) |
Block |
setDataAlign(int dataAlign) |
Block |
setHeight(int height) |
static void |
setNextIndex(int nextIndex) |
Block |
setRightBlock(Block rightBlock) |
Block |
setWidth(int width) |
protected Block |
setX(int x) |
protected Block |
setY(int y) |
String |
toString() |
public static final int BLOCK_LEFT
public static final int BLOCK_CENTRE
public static final int BLOCK_RIGHT
public static final int DATA_TOP_LEFT
public static final int DATA_TOP_MIDDLE
public static final int DATA_TOP_RIGHT
public static final int DATA_MIDDLE_LEFT
public static final int DATA_CENTER
public static final int DATA_MIDDLE_RIGHT
public static final int DATA_BOTTOM_LEFT
public static final int DATA_BOTTOM_MIDDLE
public static final int DATA_BOTTOM_RIGHT
public Block(Board board, int width, int height)
public static void setNextIndex(int nextIndex)
public static int getNextIndex()
protected int getIndex()
public int getWidth()
public Block setWidth(int width)
public int getHeight()
public Block setHeight(int height)
public boolean isGridAllowed()
public Block allowGrid(boolean allowGrid)
public int getBlockAlign()
public Block setBlockAlign(int blockAlign)
public String getData()
public int getDataAlign()
public Block setDataAlign(int dataAlign)
protected int getX()
protected Block setX(int x)
protected int getY()
protected Block setY(int y)
public Block getRightBlock()
public Block getBelowBlock()
protected Block invalidate()
protected Block build()
protected List<wagu.Charr> getChars()
public String getPreview()
public Block getMostRightBlock()
public Block getMostBelowBlock()
Copyright © 2016–2022. All rights reserved.