public class SingleEntityZone extends Zone
Constructor and Description |
---|
SingleEntityZone(int x,
int y,
Shape shape)
Constructs a single entity zone.
|
SingleEntityZone(int x,
int y,
Shape shape,
Entity e)
Constructs a single entity zone.
|
Modifier and Type | Method and Description |
---|---|
void |
addEntity(Entity e)
Adds an entity to the zone.
|
Entity |
getEntity() |
public SingleEntityZone(int x, int y, Shape shape)
x
- x-coordinate of the zone.y
- y-coordinate of the zone.shape
- Shape of the zone.