Class owner

java.lang.Object
name.moore.kevin.ze.components.owner
All Implemented Interfaces:
com.simsilica.es.EntityComponent

public class owner extends Object implements com.simsilica.es.EntityComponent
Entities that can be owned has this component which references a faction.

This is applied onto stars and ships. Any planets orbiting an owned star are also owned. So a planet entity without this component is not unowned - check the star it's orbiting.

This means by changing the ownership of a star we can change the ownership of everything in that system. TODO it may be more efficient to add the component to everything in the hierarchy.
Author:
Kevin Moore <dev@kevin.moore.name>
  • Field Details

    • owner

      private com.simsilica.es.EntityId owner
  • Constructor Details

    • owner

      public owner(com.simsilica.es.EntityId o)
      Parameters:
      o -
  • Method Details

    • getReference

      public com.simsilica.es.EntityId getReference()
      Returns: