Class RecruitmentRelation


  • public class RecruitmentRelation
    extends PersonTransferRelation
    A relation indicating that a unit recruits a certain amount of peasants.
    • Field Detail

      • costs

        public int costs
        Recruitment costs in silver
    • Constructor Detail

      • RecruitmentRelation

        public RecruitmentRelation​(Unit unit,
                                   int amount,
                                   int cost,
                                   int line)
        Creates a new RecruitmentRelation object.
        Parameters:
        unit - The recruiting unit
        amount - The amount to transfer
        cost - The costs in silver
        line - The line in the source's orders
      • RecruitmentRelation

        public RecruitmentRelation​(Unit unit,
                                   int amount,
                                   int cost,
                                   Race race,
                                   int line)
        Creates a new RecruitmentRelation object.
        Parameters:
        unit - The recruiting unit
        amount - The amount to transfer
        cost - The costs in silver
        line - The line in the source's orders
        race - The race that is recruited