Class IncomeRelation

    • Field Detail

      • amount

        public final int amount
        The money earned
    • Constructor Detail

      • IncomeRelation

        public IncomeRelation​(Unit s,
                              Region r,
                              int amount,
                              int line)
        Creates a new IncomeRelation object.
        Parameters:
        s - The source unit
        r - The target region
        amount - The amount of money earned
        line - The line in the source's orders