Class ProblemFactory.BattleProblem

    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Description copied from interface: Problem
        Returns a message for the user.
        Returns:
        Returns message.
        See Also:
        Problem.getMessage()
      • addSuppressComment

        public Unit addSuppressComment()
        Description copied from interface: Problem
        Modifies the orders such that this problem is not listed by the inspector in the future, i.e. by adding a comment to the source unit's orders. Note that it is in the responsibility of the caller to fire OrderChangedEvents.
        Specified by:
        addSuppressComment in interface Problem
        Overrides:
        addSuppressComment in class ProblemFactory.MessageOrBattleProblem
        Returns:
        Returns a Unit whose orders were changed to suppress this warning or null if no orders were changed
        See Also:
        Problem.addSuppressComment()
      • toString

        public java.lang.String toString()
        Description copied from interface: Problem
        Implementations should usually also overwrite this.
        Specified by:
        toString in interface Problem
        Overrides:
        toString in class java.lang.Object
      • getReportMessage

        public Message getReportMessage()