Package teilchen.cubicle
Class CubicleParticle
- java.lang.Object
-
- teilchen.BasicParticle
-
- teilchen.cubicle.CubicleParticle
-
- All Implemented Interfaces:
java.io.Serializable
,ICubicleEntity
,Particle
,SpatialEntity
public class CubicleParticle extends BasicParticle implements ICubicleEntity
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CubicleParticle()
-
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
- Specified by:
position
in interfaceParticle
- Specified by:
position
in interfaceSpatialEntity
- Overrides:
position
in classBasicParticle
- 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
-
-