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 Summary
Modifier and TypeMethodDescriptiongetId()voidsetColonyId(String colonyId) voidvoidsetLocation(Location location)
-
Method Details
-
getId
String getId() -
setId
-
getLocation
Location getLocation() -
setLocation
-
getColonyId
String getColonyId()- Returns:
- the identifier of the colony this entity belongs to, or
nullif it is not owned by any colony (e.g. aResourceDepositorHostileOrganism)
-
setColonyId
-