mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
* 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:
parent
27d441de0a
commit
c88eb2ead6
6 changed files with 72 additions and 42 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue