Interface IAIGuildJoinStrategy

    • Method Detail

      • shouldJoin

        boolean shouldJoin​(IAIPlayer player,
                           ICity city,
                           java.util.Optional<INavigableVessel> vessel)
        Decide if player should join the guild in the city. It may be that the player has a vessel in the city.
        If the player is already a member of the guild false is returned always.
        Parameters:
        player - who should decide on joining
        city - where to join
        vessel - possible vessel in the city
        Returns:
        true if the player should join the guild.
      • join

        void join​(IAIPlayer player,
                  ICity city)
        Join the guild in the city.
        Parameters:
        player - who should decide on joining
        city - where to join