}else if(event.getMessage() instanceof CharacterSelectedMessage) {
fireCharacterSelectedEvent(new CharacterSelectedEvent(this,
((CharacterSelectedMessage) event.getMessage()).getCharacter()));
return;
}else if(event.getMessage() instanceof AccusationMessage){
AccusationMessage msg = ((AccusationMessage)event.getMessage());
this.fireMakeAccusationEvent(new MakeAccusationEvent(event, msg.getTheory()));
return;
}else if(event.getMessage() instanceof SuggestionMessage){
SuggestionMessage msg = ((SuggestionMessage)event.getMessage());
this.fireMakeSuggestionEvent(new MakeSuggestionEvent(event, msg.getTheory()));
return;
}else if (event.getMessage() instanceof SuggestionDisprovedMessage)
{
}else if(event.getMessage() instanceof SuggestionDisprovedNeedFeedBackMessage){
this.fireSuggestionDisprovedNeedFeedBackEvent(new SuggestionDisprovedNeedFeedBackEvent(this, ((SuggestionDisprovedNeedFeedBackMessage)event.getMessage()).getSuggestion(), ((SuggestionDisprovedNeedFeedBackMessage)event.getMessage()).getCards()));
}else if(event.getMessage() instanceof SuggestionDisprovedCardMessage){
if(isServer && !(client.getPlayer().getUUID().equals(currentPlayer.getUUID())))
{
//Forward the message onto the client
server.send(currentPlayer, event.getMessage());
//fireDisproveCardEvent(new DisproveCardEvent(this, ((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard()));
}
//Show a message box indicating what card was disproved
String card = "";
if(((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard() instanceof WeaponCard)
card = ((WeaponCard)((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard()).getWeaponType().toString();
else if(((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard() instanceof LocationCard)
card = ((LocationCard)((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard()).getLocationName().toString();
else if (((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard() instanceof CharacterCard)
card = ((CharacterCard)((SuggestionDisprovedCardMessage)event.getMessage()).getDisprovedCard()).getCharacterName().toString();
JOptionPane.showMessageDialog(null, card + " has been disproven.");
}else if(event.getMessage() instanceof EndGameMessage){
EndGameMessage msg = (EndGameMessage) event.getMessage();
JOptionPane.showMessageDialog(null, "Game Over! " + msg.getWinner().getCharacter().toString() + " has solved the case!");
mainView.quitGame();
client.disconnect();
if(isServer)
{
server.disconnect();