Card render testing dialog improves:

* Added chooseable render testing (click by mouse on cards);
* Added column style render testing (many cards mode);
* Added tapped, face down and manifested render testing for permanents;
* CardView: fixed missing copy data (NPE for transformed cards);
* CardArea: added support to draw permanents;
* CardArea: added support of offsets between cards/columns;
This commit is contained in:
Oleg Agafonov 2020-01-22 00:44:25 +04:00
parent a072d8275f
commit eaaa37db11
27 changed files with 306 additions and 138 deletions

View file

@ -1,12 +1,10 @@
package mage.view;
import java.io.Serializable;
import mage.counters.Counter;
import java.io.Serializable;
/**
*
* @author BetaSteward_at_googlemail.com
*/
public class CounterView implements Serializable {
@ -20,6 +18,11 @@ public class CounterView implements Serializable {
this.count = counter.getCount();
}
public CounterView(final CounterView view) {
this.name = view.name;
this.count = view.count;
}
public String getName() {
return name;
}
@ -27,7 +30,7 @@ public class CounterView implements Serializable {
public int getCount() {
return count;
}
@Override
public boolean equals(Object other) {
if (other == this) {
@ -39,9 +42,9 @@ public class CounterView implements Serializable {
if (!(other instanceof CounterView)) {
return false;
}
CounterView oth = (CounterView)other;
CounterView oth = (CounterView) other;
return
(count == oth.count) &&
(name.equals(oth.name));
(name.equals(oth.name));
}
}