mirror of
https://github.com/magefree/mage.git
synced 2026-01-10 04:42:07 -08:00
GUI: improved main and battlefield menus (related to #11533):
- main menu: better naming for deck editor; - battlefield menu: added deck view for computer players, better naming; - network: improved experimental connection;
This commit is contained in:
parent
ba8650b4e2
commit
6aaaa8cb46
11 changed files with 187 additions and 132 deletions
|
|
@ -78,6 +78,17 @@ public class MatchPlayer implements Serializable {
|
|||
return deck;
|
||||
}
|
||||
|
||||
public Deck getDeckForViewer() {
|
||||
if (this.deck == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Tiny Leaders uses deck name for game, also must hide real deck name from other players
|
||||
Deck viewerDeck = this.deck.copy();
|
||||
viewerDeck.setName(this.getName());
|
||||
return viewerDeck;
|
||||
}
|
||||
|
||||
public void submitDeck(Deck deck) {
|
||||
this.deck = deck;
|
||||
this.doneSideboarding = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue