Class CombatStatusRelation


  • public class CombatStatusRelation
    extends UnitRelation
    A relation indicating that the source unit changes its battle status
    • Field Detail

      • newCombatStatus

        public int newCombatStatus
      • newUnaided

        public boolean newUnaided
      • newUnaidedSet

        public boolean newUnaidedSet
    • Constructor Detail

      • CombatStatusRelation

        public CombatStatusRelation​(Unit s,
                                    int newStatus,
                                    int line)
        Creates a new CombatStatusRelation.
        Parameters:
        s - The source unit
        newStatus - new Combat status of the unit
        line - The line in the source's orders
      • CombatStatusRelation

        public CombatStatusRelation​(Unit s,
                                    boolean newUnaidedStatus,
                                    int line)
        Creates a new CombatStatusRelation. (unaided status change)
        Parameters:
        s - The source unit
        newUnaidedStatus - "unaided"-status after processing current orders
        line - The line in the source's orders