Class TakeLoanTradeStep

  • All Implemented Interfaces:
    ITradeStep

    public class TakeLoanTradeStep
    extends java.lang.Object
    implements ITradeStep
    Implements the trade step for taking a loan. How the decission on taking a loan is done is defined by the IAITakeLoanStrategy defined on the player. If it is not possible to take a loan nothing happens.
    Author:
    Andi Hotz, (c) Sahits GmbH, 2016 Created on Jun 12, 2016
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean execute()
      Execute the trade step.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TakeLoanTradeStep

        public TakeLoanTradeStep()
    • Method Detail

      • execute

        public boolean execute()
        Description copied from interface: ITradeStep
        Execute the trade step.
        Specified by:
        execute in interface ITradeStep
        Returns:
        true if the next step can be executed on completion or if the execution is triggered by the arrival of the ship in the next port.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object