Chnaged permanent row handling so creatures are always shown towards the opponent side.

This commit is contained in:
LevelX2 2016-07-02 13:45:34 +02:00
parent e9993f980a
commit 7cfdd80c57
12 changed files with 89 additions and 60 deletions

View file

@ -82,6 +82,8 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
private boolean addedCreature;
private boolean removedCreature;
// defines if the battlefield is within a top (means top row of player panels) or a bottom player panel
private boolean topPanelBattlefield;
/**
* Creates new form BattlefieldPanel
@ -131,6 +133,14 @@ public class BattlefieldPanel extends javax.swing.JLayeredPane {
cardDimension = GUISizeHelper.battlefieldCardMaxDimension;
}
public boolean isTopPanelBattlefield() {
return topPanelBattlefield;
}
public void setTopPanelBattlefield(boolean topPanelBattlefield) {
this.topPanelBattlefield = topPanelBattlefield;
}
public void update(Map<UUID, PermanentView> battlefield) {
boolean changed = false;