Class ImageSurfaceEntity

    • Constructor Detail

      • ImageSurfaceEntity

        public ImageSurfaceEntity()
    • Method Detail

      • create

        public void create​(UUID uuid,
                           AbstractEntityDef entityDef,
                           int entityDefIdx,
                           UUID parentCompositeEntity)
        Description copied from class: AbstractEntity
        Central initialization of non-transient fields (usually on server side). Is only called once in the whole life cycle of an entity.
        Overrides:
        create in class PhysicalEntity
      • setHealth

        public void setHealth​(double health)
        Description copied from class: PhysicalEntity
        Sets the health of this entity. Setting health 0.0 means the entity has been destroyed
        Overrides:
        setHealth in class PhysicalEntity
      • setTilesetPosition

        public void setTilesetPosition​(CoordI2 tilesetPosition)
      • getTilesetModName

        public String getTilesetModName()
      • setTilesetModName

        public void setTilesetModName​(String tilesetModName)
      • getTilesetName

        public String getTilesetName()
      • setTilesetName

        public void setTilesetName​(String tilesetName)
      • isDestructible

        public boolean isDestructible()
      • setDestructible

        public void setDestructible​(boolean destructible)
      • isDefaultImage

        public boolean isDefaultImage()