Class PlayerActionFeedback
java.lang.Object
it.polimi.ingsw.Server.Messages.Message
it.polimi.ingsw.Server.Messages.ServerResponses.Response
it.polimi.ingsw.Server.Messages.ServerResponses.PlayerActionFeedback
- All Implemented Interfaces:
Serializable
A
Response to represent the output the controller gave on a previous PlayerActionRequest- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivatePlayerActionFeedback(StatusCode statusCode, String report) Construct the response -
Method Summary
Modifier and TypeMethodDescriptionstatic PlayerActionFeedbackReturns a failed status code responseGet information about the responsestatic PlayerActionFeedbacksuccess()Returns a successful status code responseMethods inherited from class it.polimi.ingsw.Server.Messages.ServerResponses.Response
getStatusCode
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
report
-
-
Constructor Details
-
PlayerActionFeedback
Construct the response- Parameters:
statusCode- the status code of the responsereport- additional feedback about the response
-
-
Method Details
-
fail
Returns a failed status code response- Parameters:
report- additional feedback about failure- Returns:
- a failed status code response
-
success
Returns a successful status code response- Returns:
- a successful status code response
-
getReport
Get information about the response- Returns:
- additional feedback about the response
-