Class Area2
- java.lang.Object
-
- de.extio.spacecraft.shared.model.world.Point2
-
- de.extio.spacecraft.shared.model.world.Area2
-
- All Implemented Interfaces:
HasPosition2
,HasPositionAndDimension2
,SpatialIndex2Capable
- Direct Known Subclasses:
CompositeEntityIdZone
,CompositeEntityZone
,EntityDefZone
,EntityIdZone
,EntityZone
public class Area2 extends Point2 implements HasPositionAndDimension2, SpatialIndex2Capable
A 2D area, having a position (top left corner) and a dimension
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
CoordI2
getDimension()
int
hashCode()
void
includeInSpatialIndex2ResultSet(long session)
boolean
isInSpatialIndex2ResultSet(long session)
void
setDimension(CoordI2 dimension)
String
toString()
-
Methods inherited from class de.extio.spacecraft.shared.model.world.Point2
getPosition, setPosition
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.extio.spacecraft.shared.model.world.HasPosition2
getPosition
-
-
-
-
Constructor Detail
-
Area2
public Area2()
-
Area2
public Area2(HasPositionAndDimension2 other)
-
-
Method Detail
-
getDimension
public CoordI2 getDimension()
- Specified by:
getDimension
in interfaceHasPositionAndDimension2
-
setDimension
public void setDimension(CoordI2 dimension)
-
isInSpatialIndex2ResultSet
public boolean isInSpatialIndex2ResultSet(long session)
- Specified by:
isInSpatialIndex2ResultSet
in interfaceSpatialIndex2Capable
-
includeInSpatialIndex2ResultSet
public void includeInSpatialIndex2ResultSet(long session)
- Specified by:
includeInSpatialIndex2ResultSet
in interfaceSpatialIndex2Capable
-
-