MayLook: refactor it to use timestamp, also handle facedown exile

This commit is contained in:
Hans Mackowiak
2020-07-19 15:59:42 +00:00
committed by Michael Kamensky
parent aafbdd1a9c
commit b816bae232
7 changed files with 55 additions and 73 deletions

View File

@@ -161,7 +161,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
return;
}
tempShownCards.add(c);
c.setMayLookAt(player, true, true);
c.addMayLookTemp(player);
}
@Override
@@ -178,7 +178,7 @@ public class PlayerControllerHuman extends PlayerController implements IGameCont
}
for (final Card c : tempShownCards) {
c.setMayLookAt(player, false, true);
c.removeMayLookTemp(player);
}
tempShownCards.clear();
}