Wall

public class Wall extends FieldEntity(source)

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

Constructors

Link copied to clipboard
public void Wall(int x, int y, boolean horizontal)
Constructs and initializes a wall at the specified (x,y) location and orientation.

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 boolean isHorizontal()
Returns true if the orientation of this wall was horizontal.
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.