mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Fix so manlands are moved to creature row properly in mobile app
This commit is contained in:
@@ -96,6 +96,7 @@ public class MatchController extends AbstractGuiGame {
|
||||
return avatar;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refreshCardDetails(Iterable<CardView> cards) {
|
||||
//ensure cards appear in the correct row of the field
|
||||
for (VPlayerPanel pnl : view.getPlayerPanels().values()) {
|
||||
|
||||
@@ -82,15 +82,13 @@ public class FControlGameEventHandler extends IGameEventVisitor.Base<Void> {
|
||||
|
||||
synchronized (cardsUpdate) {
|
||||
if (!cardsUpdate.isEmpty()) {
|
||||
for (final CardView c : cardsUpdate) {
|
||||
matchController.updateSingleCard(c);
|
||||
}
|
||||
matchController.updateCards(cardsUpdate);
|
||||
cardsUpdate.clear();
|
||||
}
|
||||
}
|
||||
synchronized (cardsRefreshDetails) {
|
||||
if (!cardsRefreshDetails.isEmpty()) {
|
||||
matchController.updateCards(cardsRefreshDetails);
|
||||
matchController.refreshCardDetails(cardsRefreshDetails);
|
||||
cardsRefreshDetails.clear();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,7 @@ public interface IGuiGame {
|
||||
void updateZones(Iterable<PlayerZoneUpdate> zonesToUpdate);
|
||||
void updateSingleCard(CardView card);
|
||||
void updateCards(Iterable<CardView> cards);
|
||||
void refreshCardDetails(Iterable<CardView> cards);
|
||||
void updateManaPool(Iterable<PlayerView> manaPoolUpdate);
|
||||
void updateLives(Iterable<PlayerView> livesUpdate);
|
||||
void setPanelSelection(CardView hostCard);
|
||||
|
||||
@@ -91,6 +91,11 @@ public abstract class AbstractGuiGame implements IGuiGame, IMayViewCards {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void refreshCardDetails(final Iterable<CardView> cards) {
|
||||
//not needed for base game implementation
|
||||
}
|
||||
|
||||
public String getCardImageKey(final CardStateView csv) {
|
||||
return csv.getImageKey(getLocalPlayers());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user