* Added table info about range set in a multiplayer game (fixes
* authors and should not be interpreted as representing official policies, either expressed
* or implied, of BetaSteward_at_googlemail.com.
*/
-
package mage.view;
import java.io.Serializable;
@@ -33,7 +32,6 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.UUID;
-
import mage.constants.SkillLevel;
import mage.constants.TableState;
import mage.game.Game;
@@ -47,6 +45,7 @@ import mage.game.tournament.TournamentPlayer;
* @author BetaSteward_at_googlemail.com
*/
public class TableView implements Serializable {
+
private static final long serialVersionUID = 1L;
private UUID tableId;
@@ -77,9 +76,9 @@ public class TableView implements Serializable {
}
this.controllerName = table.getControllerName();
this.tableState = table.getState();
- if (table.getState() == TableState.WAITING ||
- table.getState() == TableState.READY_TO_START ||
- table.getState() == TableState.STARTING) {
+ if (table.getState() == TableState.WAITING
+ || table.getState() == TableState.READY_TO_START
+ || table.getState() == TableState.STARTING) {
this.createTime = table.getCreateTime();
} else {
if (table.isTournament()) {
@@ -131,6 +130,9 @@ public class TableView implements Serializable {
addInfo.append("Wins:").append(table.getMatch().getWinsNeeded());
addInfo.append(sbScore.toString());
}
+ if (table.getNumberOfSeats() > 3) {
+ addInfo.append(" Rng: ").append(table.getMatch().getOptions().getRange().toString());
+ }
this.additionalInfo = addInfo.toString();
this.skillLevel = table.getMatch().getOptions().getSkillLevel();
this.quitRatio = Integer.toString(table.getMatch().getOptions().getQuitRatio());
