Example #1
0
 /**
  * Join an existing game
  * Arguments: the id of the game we want to connect to
  *
  * @return GameWrapper
  */
 function GetCurrentGame()
 {
     if (isset($_SESSION['userid'])) {
         $user = new User($_SESSION['userid']);
         return $user->GetCurrentGameWrapper();
     }
 }