switch(message.charAt(1)) {
case 'b':
//Battle Request rbUSERNAME
if(m_players.containsKey(player)) {
TcpProtocolHandler.writeMessage(m_players.get(player).getTcpSession(),
new RequestMessage(RequestType.BATTLE, p.getName()));
p.addRequest(player, RequestType.BATTLE);
}
break;
case 't':
//Trade Request rtUSERNAME
if(m_players.containsKey(player)) {
TcpProtocolHandler.writeMessage(m_players.get(player).getTcpSession(),
new RequestMessage(RequestType.TRADE, p.getName()));
p.addRequest(player, RequestType.TRADE);
}
break;
case 'a':
//Request accepted raUSERNAME