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
    Modifier and Type
    Field
    Description
    private com.simsilica.es.EntityId
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    destination​(com.simsilica.es.EntityId id)
    This constructor uses a reference to another entity as the location of this entity.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.simsilica.es.EntityId
    The EntityId of the entity referred to.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • 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: iEntityReference
      The EntityId of the entity referred to.

      This may be EntityId.NULL_ID if the entity has not yet been located.

      Specified by:
      getReference in interface iEntityReference
      Returns:
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: