forked from External/mage
multiple player/opponent choose - fixed that game ask players in random order instead APNAP (closes #12532);
game: fixed wrong player restore for TestPlayer and SimulatedPlayer2;
This commit is contained in:
parent
eee1462eba
commit
1e2d179410
12 changed files with 404 additions and 100 deletions
|
|
@ -296,7 +296,11 @@ public interface Player extends MageItem, Copyable<Player> {
|
|||
|
||||
ManaPool getManaPool();
|
||||
|
||||
Set<UUID> getInRange();
|
||||
/**
|
||||
* Is checking player in range of current player.
|
||||
* Warning, range list updates on start of the turn due rules.
|
||||
*/
|
||||
boolean hasPlayerInRange(UUID checkingPlayerId);
|
||||
|
||||
boolean isTopCardRevealed();
|
||||
|
||||
|
|
@ -1250,4 +1254,10 @@ public interface Player extends MageItem, Copyable<Player> {
|
|||
}
|
||||
|
||||
public UserData getControllingPlayersUserData(Game game);
|
||||
|
||||
/**
|
||||
* Some player implementations (TestPlayer, Simulated) uses facade structure with hidden player object,
|
||||
* so that's method helps to find real player that used by a game (in most use cases it's a PlayerImpl)
|
||||
*/
|
||||
Player getRealPlayer();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue