mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
add serialVersionUID
This commit is contained in:
parent
3506004156
commit
83e39e900a
23 changed files with 27 additions and 2 deletions
|
@ -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>();
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -35,5 +35,6 @@ import java.io.Serializable;
|
|||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TournamentPlayerView implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
||||
|
|
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Reference in a new issue