mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Add option to select cards from any Zone that can be shown (implemented in desktop GUI only for now)
This commit is contained in:
@@ -343,6 +343,16 @@ public class MatchController extends AbstractGuiGame {
|
||||
view.updateZones(zonesToUpdate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Iterable<PlayerZoneUpdate> tempShowZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||
return view.tempShowZones(controller, zonesToUpdate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void hideZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||
view.hideZones(controller, zonesToUpdate);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateCards(final Iterable<CardView> cards) {
|
||||
for (final CardView card : cards) {
|
||||
|
||||
@@ -468,6 +468,15 @@ public class MatchScreen extends FScreen {
|
||||
}
|
||||
}
|
||||
|
||||
public Iterable<PlayerZoneUpdate> tempShowZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||
// pfps needs to actually do something
|
||||
return zonesToUpdate; // pfps should return only those zones newly shown
|
||||
}
|
||||
|
||||
public void hideZones(final PlayerView controller, final Iterable<PlayerZoneUpdate> zonesToUpdate) {
|
||||
// pfps needs to actually do something
|
||||
}
|
||||
|
||||
public void updateSingleCard(final CardView card) {
|
||||
final CardAreaPanel pnl = CardAreaPanel.get(card);
|
||||
if (pnl == null) { return; }
|
||||
|
||||
Reference in New Issue
Block a user