Commit 8ca2b40e authored by Felix RABADAN's avatar Felix RABADAN
Browse files

Changement gestion connect

parent 5c630375
......@@ -4,13 +4,14 @@ import java.util.HashMap;
import java.util.Scanner;
import game.Card;
import game.Member;
import game.Pair;
import game.User;
public final class UserController {
private static UserController instance = null;
private HashMap<String, User> users;
private User connectedUser;
private Member connectedUser;
private UserController() {
users = new HashMap<String, User>();
......@@ -41,7 +42,7 @@ public final class UserController {
}
}
public void connect(User user) {
public void connect(Member user) {
if (connectedUser == null) {
this.connectedUser = user;
System.out.println(user.getName() + " is connected");
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment