Interface IAITakeLoanStrategy


  • public interface IAITakeLoanStrategy
    Interface defining the strategy for taking a loan.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Jun 12, 2016
    • Method Detail

      • shouldTakeLoan

        boolean shouldTakeLoan​(IAIPlayer player)
        Check if the player should take out a loan.
        Parameters:
        player - to be checked.
        Returns:
        true if a loan should be taken.
      • takeLoan

        void takeLoan​(IAIPlayer player,
                      ICity city)
        Take a loan in the city.
        Parameters:
        player - that takes out the loan
        city - where the loan is taken.