Package name.moore.kevin.ze.components
Class destination
java.lang.Object
name.moore.kevin.ze.components.destination
- All Implemented Interfaces:
com.simsilica.es.EntityComponent,iEntityReference
public class destination
extends Object
implements com.simsilica.es.EntityComponent, iEntityReference
The destination component is attached to entities that are travelling towards other entities.
Exclusive with location (which cant move)
- Author:
- Kevin Moore
<dev@kevin.moore.name>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptiondestination(com.simsilica.es.EntityId id)This constructor uses a reference to another entity as the location of this entity. -
Method Summary
Modifier and TypeMethodDescriptioncom.simsilica.es.EntityIdThe EntityId of the entity referred to.toString()
-
Field Details
-
eid
private com.simsilica.es.EntityId eid
-
-
Constructor Details
-
destination
public destination(com.simsilica.es.EntityId id)This constructor uses a reference to another entity as the location of this entity.- Parameters:
id-
-
-
Method Details
-
getReference
public com.simsilica.es.EntityId getReference()Description copied from interface:iEntityReferenceThe EntityId of the entity referred to.This may be
EntityId.NULL_IDif the entity has not yet been located.- Specified by:
getReferencein interfaceiEntityReference- Returns:
-
toString
-