예제 #1
0
 public void receivedPlayerUpdate(int lines, int points, int funds, PlayerInfo playerInfo)
     throws NetworkException {
   // Do not do anything if somehow we got called with ourself
   if (!playerInfo.equals(this)) {
     m_ac.playerUpdate(lines, points, funds, playerInfo);
   }
 }
예제 #2
0
 // Update opponent on my changed stats
 public void playerUpdate(int lines, int points, int funds, PlayerInfo playerInfo)
     throws NetworkException {
   // If PlayerInfo is not me, don't send- why would we update
   // our opponent about herself?
   if (playerInfo.getUsername() == this.m_info.getUsername()) {
     // Only send here
     // First param is ignored
     m_netClient.playerUpdate(lines, points, funds, playerInfo);
   }
 }