* Player types - If you connect to another MAGE server, the available player types are updated now correctly. Removed some redundant update of server information in client.

This commit is contained in:
LevelX2 2014-03-24 14:57:55 +01:00
parent 27d441de0a
commit c88eb2ead6
6 changed files with 72 additions and 42 deletions

View file

@ -109,6 +109,11 @@ public class SessionImpl implements Session {
this.client = client;
}
@Override
public String getSessionId() {
return sessionId;
}
@Override
public synchronized boolean connect(Connection connection) {
if (isConnected()) {

View file

@ -27,6 +27,7 @@
*/
package mage.remote.interfaces;
import java.util.UUID;
import mage.remote.Connection;
/**
@ -47,4 +48,6 @@ public interface Connect {
boolean isConnected();
boolean disconnectUser(String userSessionId);
String getSessionId();
}

View file

@ -35,16 +35,16 @@ import mage.game.match.MatchType;
*
* @author BetaSteward_at_googlemail.com
*/
public class GameTypeView implements Serializable {
public class GameTypeView extends Object implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int minPlayers;
private int maxPlayers;
private int numTeams;
private int playersPerTeam;
private boolean useRange;
private boolean useAttackOption;
private final String name;
private final int minPlayers;
private final int maxPlayers;
private final int numTeams;
private final int playersPerTeam;
private final boolean useRange;
private final boolean useAttackOption;
public GameTypeView(MatchType gameType) {
this.name = gameType.getName();