Class RestrictedEntity

    • Constructor Detail

      • RestrictedEntity

        public RestrictedEntity()
    • 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 AbstractEntity
      • serverRestrictEntity

        public boolean serverRestrictEntity​(UUID recipient,
                                            AbstractCompositeEntity parent,
                                            GameSession gameSession)
        Description copied from class: AbstractEntity
        Server side: Checks whether this entity should be restricted to the player recipient, i.e. details about this entity (state, ...) are sent to this player or not. See also RestrictedEntitySurface
        Overrides:
        serverRestrictEntity in class AbstractEntity
      • getAlternativeTilesetPosition

        public CoordI2 getAlternativeTilesetPosition()
      • setAlternativeTilesetPosition

        public void setAlternativeTilesetPosition​(CoordI2 alternativeTilesetPosition)
      • getHealthCur

        public double getHealthCur()
      • setHealthCur

        public void setHealthCur​(double healthCur)
      • getHealthTotal

        public double getHealthTotal()
      • setHealthTotal

        public void setHealthTotal​(double healthTotal)
      • getShieldFieldPlateau

        public int getShieldFieldPlateau()
      • setShieldFieldPlateau

        public void setShieldFieldPlateau​(int shieldFieldPlateau)
      • getShieldFieldColorR

        public int getShieldFieldColorR()
      • setShieldFieldColorR

        public void setShieldFieldColorR​(int shieldFieldColorR)
      • getShieldFieldColorG

        public int getShieldFieldColorG()
      • setShieldFieldColorG

        public void setShieldFieldColorG​(int shieldFieldColorG)
      • getShieldFieldColorB

        public int getShieldFieldColorB()
      • setShieldFieldColorB

        public void setShieldFieldColorB​(int shieldFieldColorB)
      • getServerLastTurnUsed

        public int getServerLastTurnUsed()
      • setServerLastTurnUsed

        public void setServerLastTurnUsed​(int serverLastTurnUsed)
      • getAlternativeTilesetModName

        public String getAlternativeTilesetModName()
      • setAlternativeTilesetModName

        public void setAlternativeTilesetModName​(String alternativeTilesetModName)
      • getAlternativeTilesetName

        public String getAlternativeTilesetName()
      • setAlternativeTilesetName

        public void setAlternativeTilesetName​(String alternativeTilesetName)
      • getAlternativeEntityLayer

        public EntityLayer getAlternativeEntityLayer()
      • setAlternativeEntityLayer

        public void setAlternativeEntityLayer​(EntityLayer alternativeEntityLayer)
      • getShieldFieldEffectCorner

        public int getShieldFieldEffectCorner()
      • setShieldFieldEffectCorner

        public void setShieldFieldEffectCorner​(int shieldFieldEffectCorner)