added an getter for the error id in the IncorrectrequestMessage and implemeted how to handle it in the client game logic.
This commit is contained in:
@@ -413,7 +413,7 @@ public void received(ShutdownMessage msg) {
|
||||
*/
|
||||
@Override
|
||||
public void received(IncorrectRequestMessage msg) {
|
||||
state.received(msg);
|
||||
addNotification(new InfoNotification(Resources.stringLookup("incorrect.request." + msg.getId())));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -27,6 +27,15 @@ public IncorrectRequestMessage() {
|
||||
this.id = 0;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the id of the incorrect request message
|
||||
*
|
||||
* @return the id of the error message
|
||||
*/
|
||||
public int getId(){
|
||||
return id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Accepts a visitor to process this message.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user