add serialVersionUID

This commit is contained in:
Loki 2011-01-23 15:45:15 +02:00
parent 3506004156
commit 83e39e900a
23 changed files with 27 additions and 2 deletions

View file

@ -40,6 +40,7 @@ import mage.abilities.Ability;
* @author BetaSteward_at_googlemail.com
*/
public class AbilityPickerView implements Serializable {
private static final long serialVersionUID = 1L;
private Map<UUID, String> choices = new HashMap<UUID, String>();

View file

@ -38,6 +38,7 @@ import mage.abilities.Ability;
* @author BetaSteward_at_googlemail.com
*/
public class AbilityView extends CardView {
private static final long serialVersionUID = 1L;
private String sourceName;
private CardView sourceCard;

View file

@ -36,13 +36,12 @@ import java.util.UUID;
import mage.ObjectColor;
import mage.Constants.CardType;
import mage.Constants.Rarity;
import mage.abilities.Ability;
import mage.cards.Card;
import mage.counters.Counters;
import mage.game.permanent.Permanent;
import mage.game.permanent.PermanentToken;
import mage.game.permanent.token.Token;
import mage.game.stack.Spell;
import mage.game.stack.StackObject;
import mage.target.Target;
import mage.target.Targets;
@ -51,6 +50,7 @@ import mage.target.Targets;
* @author BetaSteward_at_googlemail.com
*/
public class CardView implements Serializable {
private static final long serialVersionUID = 1L;
protected UUID id;
protected UUID parentId;
@ -70,6 +70,7 @@ public class CardView implements Serializable {
protected int cardNumber;
protected boolean isAbility;
protected CardView ability;
protected Counters counters;
public List<UUID> targets;
@ -81,6 +82,7 @@ public class CardView implements Serializable {
this.power = Integer.toString(card.getPower().getValue());
this.toughness = Integer.toString(card.getToughness().getValue());
this.loyalty = Integer.toString(card.getLoyalty().getValue());
this.counters = ((Permanent) card).getCounters().copy();
} else {
this.power = card.getPower().toString();
this.toughness = card.getToughness().toString();

View file

@ -36,6 +36,7 @@ import java.util.UUID;
* @author BetaSteward_at_googlemail.com
*/
public class ChatMessage implements Serializable {
private static final long serialVersionUID = 1L;
private UUID chatId;
private String message;

View file

@ -40,6 +40,7 @@ import mage.players.Player;
* @author BetaSteward_at_googlemail.com
*/
public class CombatGroupView implements Serializable {
private static final long serialVersionUID = 1L;
private CardsView attackers = new CardsView();
private CardsView blockers = new CardsView();

View file

@ -36,6 +36,8 @@ import mage.counters.Counter;
* @author BetaSteward_at_googlemail.com
*/
public class CounterView implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int count;

View file

@ -35,6 +35,7 @@ import java.io.Serializable;
* @author BetaSteward_at_googlemail.com
*/
public class DraftClientMessage implements Serializable {
private static final long serialVersionUID = 1L;
private DraftView draftView;
private DraftPickView draftPickView;

View file

@ -36,6 +36,7 @@ import mage.game.draft.DraftPlayer;
* @author BetaSteward_at_googlemail.com
*/
public class DraftPickView implements Serializable {
private static final long serialVersionUID = 1L;
protected CardsView booster;
protected CardsView picks;

View file

@ -39,6 +39,7 @@ import mage.game.draft.Draft;
* @author BetaSteward_at_googlemail.com
*/
public class DraftView implements Serializable {
private static final long serialVersionUID = 1L;
private List<String> sets = new ArrayList<String>();
private int boosterNum;

View file

@ -38,6 +38,7 @@ import mage.game.Game;
* @author BetaSteward_at_googlemail.com
*/
public class ExileView extends CardsView {
private static final long serialVersionUID = 1L;
private String name;
private UUID id;

View file

@ -37,6 +37,7 @@ import java.util.UUID;
* @author BetaSteward_at_googlemail.com
*/
public class GameClientMessage implements Serializable {
private static final long serialVersionUID = 1L;
private GameView gameView;
private CardsView cardsView;

View file

@ -36,6 +36,7 @@ import mage.game.match.MatchType;
* @author BetaSteward_at_googlemail.com
*/
public class GameTypeView implements Serializable {
private static final long serialVersionUID = 1L;
private String name;
private int minPlayers;

View file

@ -50,6 +50,7 @@ import mage.players.Player;
* @author BetaSteward_at_googlemail.com
*/
public class GameView implements Serializable {
private static final long serialVersionUID = 1L;
private List<PlayerView> players = new ArrayList<PlayerView>();
private CardsView hand;

View file

@ -36,6 +36,7 @@ import mage.players.ManaPool;
* @author BetaSteward_at_googlemail.com
*/
public class ManaPoolView implements Serializable {
private static final long serialVersionUID = 1L;
private int red;
private int green;

View file

@ -41,6 +41,7 @@ import mage.game.permanent.PermanentToken;
* @author BetaSteward_at_googlemail.com
*/
public class PermanentView extends CardView {
private static final long serialVersionUID = 1L;
private boolean tapped;
private boolean flipped;

View file

@ -43,6 +43,7 @@ import mage.players.Player;
* @author BetaSteward_at_googlemail.com
*/
public class PlayerView implements Serializable {
private static final long serialVersionUID = 1L;
private UUID playerId;
private String name;

View file

@ -36,6 +36,7 @@ import mage.game.tournament.Round;
* @author BetaSteward_at_googlemail.com
*/
public class RoundView implements Serializable {
private static final long serialVersionUID = 1L;
public RoundView(Round round) {

View file

@ -37,6 +37,7 @@ import mage.game.Seat;
* @author BetaSteward_at_googlemail.com
*/
public class SeatView implements Serializable {
private static final long serialVersionUID = 1L;
private UUID playerId;
private String playerName;

View file

@ -37,6 +37,7 @@ import mage.game.stack.StackAbility;
* @author BetaSteward_at_googlemail.com
*/
public class StackAbilityView extends CardView {
private static final long serialVersionUID = 1L;
private String sourceName;
private CardView sourceCard;

View file

@ -37,6 +37,7 @@ import mage.cards.decks.Deck;
* @author BetaSteward_at_googlemail.com
*/
public class TableClientMessage implements Serializable {
private static final long serialVersionUID = 1L;
private Deck deck;
private UUID tableId;

View file

@ -41,6 +41,7 @@ import mage.game.Table;
* @author BetaSteward_at_googlemail.com
*/
public class TableView implements Serializable {
private static final long serialVersionUID = 1L;
private UUID tableId;
private String gameType;

View file

@ -35,5 +35,6 @@ import java.io.Serializable;
* @author BetaSteward_at_googlemail.com
*/
public class TournamentPlayerView implements Serializable {
private static final long serialVersionUID = 1L;
}

View file

@ -38,6 +38,7 @@ import mage.game.tournament.Tournament;
* @author BetaSteward_at_googlemail.com
*/
public class TournamentView implements Serializable {
private static final long serialVersionUID = 1L;
List<RoundView> rounds = new ArrayList<RoundView>();