FieldEntity

public abstract class FieldEntity(source)

This class represents a field entity on a graphical user interface and acts as a parent class of every entity on the field.

Inheritors

Constructors

Link copied to clipboard
public void FieldEntity(int x, int y)
Constructs and initializes a field entity at the specified (x,y) location in the coordinate space.

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.