* Client - Added number of active games to the header of the games column of the user list.

This commit is contained in:
LevelX2 2014-08-24 07:03:01 +02:00
parent 30ea2188bf
commit aad1a2da89
11 changed files with 100 additions and 30 deletions

View file

@ -297,12 +297,11 @@ public class MageServerImpl implements MageServer {
}
@Override
//FIXME: why no sessionId here???
public List<UsersView> getConnectedPlayers(UUID roomId) throws MageException {
public List<RoomUsersView> getRoomUsers(UUID roomId) throws MageException {
try {
GamesRoom room = GamesRoomManager.getInstance().getRoom(roomId);
if (room != null) {
return room.getPlayers();
return room.getRoomUsersInfo();
} else {
return null;
}