Package teilchen.cubicle
Class CubicleEntity
- java.lang.Object
-
- teilchen.cubicle.CubicleEntity
-
- All Implemented Interfaces:
ICubicleEntity
public class CubicleEntity extends java.lang.Object implements ICubicleEntity
-
-
Constructor Summary
Constructors Constructor Description CubicleEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vector3i
cubicle()
get reference to the cubicle idboolean
isActive()
entities can be temporarily removed from the process of being updated by the world.boolean
leaving(int pX, int pY, int pZ)
returns true if the new position don t match the previously stored positionprocessing.core.PVector
position()
get reference to position vector
-
-
-
Method Detail
-
cubicle
public Vector3i cubicle()
Description copied from interface:ICubicleEntity
get reference to the cubicle id- Specified by:
cubicle
in interfaceICubicleEntity
- Returns:
- cubicle id
-
position
public processing.core.PVector position()
Description copied from interface:ICubicleEntity
get reference to position vector- Specified by:
position
in interfaceICubicleEntity
- Returns:
- position
-
leaving
public boolean leaving(int pX, int pY, int pZ)
Description copied from interface:ICubicleEntity
returns true if the new position don t match the previously stored position- Specified by:
leaving
in interfaceICubicleEntity
- Parameters:
pX
- xpY
- ypZ
- z- Returns:
- returns true if the new position don t match the previously stored position
-
isActive
public boolean isActive()
Description copied from interface:ICubicleEntity
entities can be temporarily removed from the process of being updated by the world.- Specified by:
isActive
in interfaceICubicleEntity
- Returns:
- returns active state
-
-