Interface Entity

All Known Subinterfaces:
DamageableEntity, DamageDealingEntity
All Known Implementing Classes:
AbstractEntity, HostileOrganism, LandingCraft, ResourceDeposit, ResourceDropOffPoint, SquadMember, Turret

public interface Entity
Something that can occupy a tile on a planet during a mission.

Serialized with a type discriminator field identifying the concrete subtype, so it can be resolved from a JSON payload such as EntitiesAtLocation.

  • Method Details

    • getId

      String getId()
    • setId

      void setId(String id)
    • getLocation

      Location getLocation()
    • setLocation

      void setLocation(Location location)
    • getColonyId

      String getColonyId()
      Returns:
      the identifier of the colony this entity belongs to, or null if it is not owned by any colony (e.g. a ResourceDeposit or HostileOrganism)
    • setColonyId

      void setColonyId(String colonyId)