Exemplo n.º 1
0
 /**
  * This method makes the client send LOOK whenever the server sends the CHANGE message. This
  * allows the client to be able to see changes caused by other players in real time.
  */
 public void mapChanged() {
   client.sendLook();
 }
Exemplo n.º 2
0
 /**
  * This method interfaces between the event listener for the player pressing End Turn and the
  * client sending the appropriate messages.
  */
 public void endTurn() {
   client.sendEndTurn();
   client.sendLook();
 }