Class EresseaRelationFactory

    • Constructor Detail

      • EresseaRelationFactory

        protected EresseaRelationFactory​(Rules rules)
    • Method Detail

      • stopUpdating

        public void stopUpdating()
        stops the updater
      • restartUpdating

        public void restartUpdating()
        restarts the updater
      • processRegionNow

        public void processRegionNow​(Region r)
        Recreates all relations in this region. Updater has to be stopped.
        Parameters:
        r - - the Region to be processed
      • isUpdaterStopped

        public boolean isUpdaterStopped()
        Returns:
        true, if updater is stopped
      • getRules

        protected Rules getRules()
        Returns the value of rules.
        Returns:
        Returns rules.
      • createRelations

        @Deprecated
        public java.util.List<UnitRelation> createRelations​(Unit u,
                                                            int from)
        Deprecated.
        Creates a list of com.eressea.util.Relation objects for a unit starting at order position from. Note: The parameter from is ignored by this implementation!
        Parameters:
        u - The unit
        from - The line of the unit's orders where to start. Must be > 0
        Returns:
        null
      • processOrders

        protected void processOrders​(Region r)
      • postProcess

        protected void postProcess​(Region r)
      • getPriority

        protected int getPriority​(Order order)