Block

public class Block extends FieldEntity(source)

A field entity that represents a block on a graphical user interface.

Constructors

Link copied to clipboard
public void Block(int x, int y)
Constructs and initializes a block at the specified (x,y) location.

Properties

Link copied to clipboard
public int x
The X coordinate of this FieldEntity.
Link copied to clipboard
public int y
The Y coordinate of this FieldEntity.

Functions

Link copied to clipboard
public int getX()
Returns the X coordinate of this FieldEntity.
Link copied to clipboard
public int getY()
Returns the Y coordinate of this FieldEntity.
Link copied to clipboard
protected void setX(int x)
Sets the X coordinate of the field entity to the specified X coordinate.
Link copied to clipboard
protected void setY(int y)
Sets the Y coordinate of the field entity to the specified Y coordinate.