Class AbstractScriptingEntity

    • Field Detail

      • radius

        protected int radius
      • custom0

        protected String custom0
      • custom1

        protected String custom1
      • custom2

        protected String custom2
      • custom3

        protected String custom3
      • custom4

        protected String custom4
    • Constructor Detail

      • AbstractScriptingEntity

        public AbstractScriptingEntity()
    • Method Detail

      • onClientCompositeEntityRadiusEntered

        protected void onClientCompositeEntityRadiusEntered​(AbstractCompositeEntity compositeEntity)
        Client side: Called when any entity entered this.radius. Feature is disabled when radius is 0
      • onClientCompositeEntityRadiusLeft

        protected void onClientCompositeEntityRadiusLeft​(UUID compositeEntityId)
        Client side: Called when any entity left this.radius. Feature is disabled when radius is 0
      • onClientTurnCompositeEntitiesInRadius

        protected void onClientTurnCompositeEntitiesInRadius​(List<AbstractCompositeEntity> compositeEntities)
        Client side: Called on every turn, providing a list of entities currently inside radius. Feature is disabled when radius is 0
      • onServerCompositeEntityRadiusEntered

        protected void onServerCompositeEntityRadiusEntered​(AbstractCompositeEntity compositeEntity,
                                                            GameSession gameSession)
        Server side: Called when any entity entered this.radius. Feature is disabled when radius is 0
      • onServerCompositeEntityRadiusLeft

        protected void onServerCompositeEntityRadiusLeft​(UUID compositeEntityId,
                                                         GameSession gameSession)
        Server side: Called when any entity left this.radius. Feature is disabled when radius is 0
      • onServerTurnCompositeEntitiesInRadius

        protected void onServerTurnCompositeEntitiesInRadius​(List<AbstractCompositeEntity> compositeEntities,
                                                             GameSession gameSession)
        Server side: Called on every turn, providing a list of entities currently inside radius. Feature is disabled when radius is 0
      • onClientFrame

        public void onClientFrame​(boolean selected)
        Description copied from class: AbstractEntity
        Client side: Callback on each frame for general logic
        Overrides:
        onClientFrame in class AbstractEntity
      • onServerTurnPass0

        public void onServerTurnPass0​(GameSession gameSession)
        Description copied from class: AbstractEntity
        Server side: Executes code on every server turn, main pass 1 of 2. Executed after composite entities pass 0
        Overrides:
        onServerTurnPass0 in class AbstractEntity
      • getRadius

        public int getRadius()
      • setRadius

        public void setRadius​(int radius)
      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • getCustom0

        public String getCustom0()
      • setCustom0

        public void setCustom0​(String custom0)
      • getCustom1

        public String getCustom1()
      • setCustom1

        public void setCustom1​(String custom1)
      • getCustom2

        public String getCustom2()
      • setCustom2

        public void setCustom2​(String custom2)
      • getCustom3

        public String getCustom3()
      • setCustom3

        public void setCustom3​(String custom3)
      • getCustom4

        public String getCustom4()
      • setCustom4

        public void setCustom4​(String custom4)