forked from External/mage
game: improved game logs for faced-down spells and exiled cards - now it support popup hint to view card/permanent (part of #11884, related to #11881, #8781)
This commit is contained in:
parent
4334ac8987
commit
c8a9a1a9db
8 changed files with 77 additions and 26 deletions
|
|
@ -9,7 +9,8 @@ public enum EmptyNames {
|
|||
// TODO: make names for that cards and enable Assert.assertNotEquals("", permanentName); for assertXXX tests
|
||||
// TODO: replace all getName().equals to haveSameNames and haveEmptyName
|
||||
FACE_DOWN_CREATURE(""), // "Face down creature"
|
||||
FACE_DOWN_TOKEN(""); // "Face down token"
|
||||
FACE_DOWN_TOKEN(""), // "Face down token"
|
||||
FACE_DOWN_CARD(""); // "Face down card"
|
||||
|
||||
public static final String EMPTY_NAME_IN_LOGS = "face down object";
|
||||
|
||||
|
|
@ -23,4 +24,10 @@ public enum EmptyNames {
|
|||
public String toString() {
|
||||
return cardName;
|
||||
}
|
||||
|
||||
public static boolean isEmptyName(String objectName) {
|
||||
return objectName.equals(FACE_DOWN_CREATURE.toString())
|
||||
|| objectName.equals(FACE_DOWN_TOKEN.toString())
|
||||
|| objectName.equals(FACE_DOWN_CARD.toString());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue