Exemplo n.º 1
0
 /**
  * Provede tah figurkou
  *
  * @param x Zdrojova souradnice X
  * @param y Zdrojova souradnice Y
  * @param toX Cilova souradnice X
  * @param toY Cilova souradnice Y
  * @return True pokud se tah povedl
  */
 public synchronized boolean turn(String login, int x, int y, int toX, int toY) {
   ServerThread st = getClients().get(login.toLowerCase());
   if (st == null) {
     return false;
   } else {
     st.turn(x, y, toX, toY);
     return true;
   }
 }