Interface FieldManager


  • public interface FieldManager
    Manages all fields (Shield, O2, ...) of a composite entity You can access the corresponding bean implementation via EngineFacade::getBusinessObject / ServerFacade::getBusinessObject
    • Method Detail

      • getFields

        Fields getFields​(UUID compositeId)
        Get all fields for a composite entity
      • getField

        Field getField​(UUID compositeId,
                       UUID fieldId)
        Get a specific field for a composite entity. See also FieldBuiltinTypes
      • getDynamicSerializationProperties

        void getDynamicSerializationProperties​(boolean incremental,
                                               UUID recipient,
                                               Fields fields,
                                               AbstractCompositeEntity parent,
                                               Map<String,​Object> result)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • setDynamicSerializationProperty

        void setDynamicSerializationProperty​(Map.Entry<String,​Object> property,
                                             AbstractCompositeEntity compositeEntity)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • excludeDynamicSerializationPropertiesPermanentStorage

        void excludeDynamicSerializationPropertiesPermanentStorage​(Map<String,​Object> dynamicSerializationProperties)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • init

        void init​(AbstractCompositeEntity compositeEntity,
                  boolean fill)
        Initializes a newly created field manager for a composite entity
      • updateBeforeMesh

        void updateBeforeMesh​(AbstractCompositeEntity compositeEntity)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • updateAfterMesh

        void updateAfterMesh​(AbstractCompositeEntity compositeEntity)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • updateFieldEmissions

        void updateFieldEmissions​(AbstractCompositeEntity compositeEntity)
        Needed for the field manager to work. Already called by AbstractCompositeEntity
      • change

        double change​(UUID compositeId,
                      UUID type,
                      CoordI2 entityPos,
                      double value,
                      int plateaus)
        Changes field at position entityPos. Value can be positive or negative. See also FieldBuiltinTypes
        Returns:
        Delta changed
      • change

        double change​(AbstractCompositeEntity compositeEntity,
                      UUID type,
                      CoordI2 entityPos,
                      double value,
                      int plateaus)
        Changes field at position entityPos. Value can be positive or negative. See also FieldBuiltinTypes
        Returns:
        Delta changed
      • change

        double change​(Fields fields,
                      UUID type,
                      CoordI2 entityPos,
                      double value,
                      int plateaus)
        Changes field at position entityPos. Value can be positive or negative. See also FieldBuiltinTypes
        Returns:
        Delta changed