Example #1
0
 /**
  * When idle, call this at least once per minute
  * to confirm online status
  * 
  * @return boolean
  */
 function MovePawn($pawnId, $x, $y)
 {
     if (isset($_SESSION['userid'])) {
         $user = new User($_SESSION['userid']);
         $game = $user->GetCurrentGame();
         if ($game->IsUserTurn($user)) {
             return $game->MovePawn($pawnId, $x, $y);
         }
         //throw new SoapFault("Server", "first check" );
     }
     return false;
 }