mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
draft stuff
This commit is contained in:
parent
2e13136101
commit
03e3be90d6
34 changed files with 1238 additions and 743 deletions
|
|
@ -53,4 +53,11 @@ public class DraftClientMessage implements Serializable {
|
|||
this.draftView = draftView;
|
||||
}
|
||||
|
||||
public DraftPickView getDraftPickView() {
|
||||
return draftPickView;
|
||||
}
|
||||
|
||||
public DraftView getDraftView() {
|
||||
return draftView;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,17 +28,21 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.game.draft.DraftPlayer;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DraftPickView {
|
||||
public class DraftPickView implements Serializable {
|
||||
|
||||
protected CardsView booster;
|
||||
protected CardsView picks;
|
||||
|
||||
public DraftPickView() {
|
||||
|
||||
public DraftPickView(DraftPlayer player) {
|
||||
this.booster = new CardsView(player.getBooster());
|
||||
this.picks = new CardsView(player.getDeck().getSideboard());
|
||||
}
|
||||
|
||||
public CardsView getBooster() {
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import mage.game.draft.Draft;
|
||||
|
|
@ -36,7 +37,7 @@ import mage.game.draft.Draft;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class DraftView {
|
||||
public class DraftView implements Serializable {
|
||||
|
||||
private List<TournamentPlayerView> players = new ArrayList<TournamentPlayerView>();
|
||||
|
||||
|
|
|
|||
|
|
@ -28,13 +28,14 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import mage.game.tournament.Round;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class RoundView {
|
||||
public class RoundView implements Serializable {
|
||||
|
||||
public RoundView(Round round) {
|
||||
|
||||
|
|
|
|||
|
|
@ -28,10 +28,12 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TournamentPlayerView {
|
||||
public class TournamentPlayerView implements Serializable {
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
|
||||
package mage.view;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import mage.game.tournament.Tournament;
|
||||
|
|
@ -36,7 +37,7 @@ import mage.game.tournament.Tournament;
|
|||
*
|
||||
* @author BetaSteward_at_googlemail.com
|
||||
*/
|
||||
public class TournamentView {
|
||||
public class TournamentView implements Serializable {
|
||||
|
||||
List<RoundView> rounds = new ArrayList<RoundView>();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue