Class PlayerActionFeedback

All Implemented Interfaces:
Serializable

public class PlayerActionFeedback extends Response
A Response to represent the output the controller gave on a previous PlayerActionRequest
See Also:
  • Field Details

  • Constructor Details

    • PlayerActionFeedback

      private PlayerActionFeedback(StatusCode statusCode, String report)
      Construct the response
      Parameters:
      statusCode - the status code of the response
      report - additional feedback about the response
  • Method Details

    • fail

      public static PlayerActionFeedback fail(String report)
      Returns a failed status code response
      Parameters:
      report - additional feedback about failure
      Returns:
      a failed status code response
    • success

      public static PlayerActionFeedback success()
      Returns a successful status code response
      Returns:
      a successful status code response
    • getReport

      public String getReport()
      Get information about the response
      Returns:
      additional feedback about the response