|
|
@ -72,10 +72,11 @@ class UserModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$this->utilisateur_gateway->addToQueue($_SESSION['utilisateur'],$partie);
|
|
|
|
$this->utilisateur_gateway->addToQueue($_SESSION['utilisateur'],$partie);
|
|
|
|
if ($this->utilisateur_gateway->queueFilled())
|
|
|
|
if ($this->utilisateur_gateway->queueFilled())
|
|
|
|
|
|
|
|
{
|
|
|
|
echo "Partie is launched"
|
|
|
|
echo "Partie is launched"
|
|
|
|
// $this->launchGame();
|
|
|
|
/*$this->launchGame();*/
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public function logout()
|
|
|
|
public function logout()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
$_SESSION['role'] = 'visitor';
|
|
|
|
$_SESSION['role'] = 'visitor';
|
|
|
|