Class AbstractEntityDef

  • Direct Known Subclasses:
    AbstractEntityModDef, ActionItemEntityDef, InfoEntityDef, PhysicalEntityDef, RestrictedEntityDef

    public abstract class AbstractEntityDef
    extends Object
    AbstractEntityDef is the root of all entity definitions.
    Entity definitions are defining static properties of an entity, editable in entity editor.
    There can be multiple instances of a definition, for example different flavors of laser weapons have just different properties but share the same implementation.
    There is always an entity definition type associated with a certain live entity type, although entity def and live entity are only loosely coupled to avoid dependency related issues. For example a CrewEntityDef is always related to a CrewEntity, although this is not enforced by business logic.
    • Constructor Detail

      • AbstractEntityDef

        public AbstractEntityDef()
    • Method Detail

      • getUuid

        public UUID getUuid()
      • setUuid

        public void setUuid​(UUID uuid)
      • getTileset

        public int getTileset()
      • setTileset

        public void setTileset​(int tileset)
      • getTilesetModName

        public String getTilesetModName()
      • setTilesetModName

        public void setTilesetModName​(String tilesetModName)
      • getTilesetName

        public String getTilesetName()
      • setTilesetName

        public void setTilesetName​(String tilesetName)
      • getTilesetPosition

        public CoordI2 getTilesetPosition()
      • setTilesetPosition

        public void setTilesetPosition​(CoordI2 tilesetPosition)
      • setLayer

        public void setLayer​(EntityLayer layer)
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getAutoOrientation

        public int getAutoOrientation()
      • setAutoOrientation

        public void setAutoOrientation​(int autoOrientation)
      • isPlaceable

        public boolean isPlaceable()
      • setPlaceable

        public void setPlaceable​(boolean placeable)
      • getDisplayName

        public String getDisplayName()
      • setDisplayName

        public void setDisplayName​(String displayName)
      • getCategory

        public String getCategory()
      • setCategory

        public void setCategory​(String category)
      • getModName

        public String getModName()
      • setModName

        public void setModName​(String modName)
      • getPlacementCompatibility

        public int getPlacementCompatibility()
      • setPlacementCompatibility

        public void setPlacementCompatibility​(int placementCompatibility)