mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 03:08:02 +00:00
Code cleanup
This commit is contained in:
@@ -83,8 +83,9 @@ public class CHand implements ICDoc {
|
||||
final HandArea p = view.getHandArea();
|
||||
|
||||
VField vf = CMatchUI.SINGLETON_INSTANCE.getFieldViewFor(player);
|
||||
if ( null == vf )
|
||||
if (vf == null) {
|
||||
return;
|
||||
}
|
||||
final Rectangle rctLibraryLabel = vf.getDetailsPanel().getLblLibrary().getBounds();
|
||||
final List<Card> cc = player.getZone(ZoneType.Hand).getCards();
|
||||
|
||||
@@ -93,7 +94,6 @@ public class CHand implements ICDoc {
|
||||
if (rctLibraryLabel.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
/* || p.getWidth() <= 0 */
|
||||
|
||||
List<Card> tmp, diff;
|
||||
tmp = new ArrayList<Card>();
|
||||
@@ -104,7 +104,8 @@ public class CHand implements ICDoc {
|
||||
diff.removeAll(cc);
|
||||
if (diff.size() == p.getCardPanels().size()) {
|
||||
p.clear();
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
for (final Card card : diff) {
|
||||
p.removeCardPanel(p.getCardPanel(card.getUniqueNumber()));
|
||||
}
|
||||
@@ -137,7 +138,8 @@ public class CHand implements ICDoc {
|
||||
if (Singletons.getView().getFrame().isShowing()) {
|
||||
Animation.moveCard(startX, startY, startWidth, endX, endY, endWidth, animationPanel, toPanel,
|
||||
layeredPane, 500);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
Animation.moveCard(toPanel);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user