UI: added new cheat engine for manual testing (see #4334)

This commit is contained in:
Oleg Agafonov 2018-01-04 01:35:33 +04:00
parent d1475f28b4
commit eae85e71bc
3 changed files with 295 additions and 82 deletions

View file

@ -668,7 +668,7 @@ public class GameController implements GameCallback {
} catch (GameException ex) {
logger.warn(ex.getMessage());
}
addCardsForTesting(game);
addCardsForTesting(game, playerId);
updateGame();
}
@ -919,8 +919,8 @@ public class GameController implements GameCallback {
/**
* Adds cards in player's hands that are specified in config/init.txt.
*/
private void addCardsForTesting(Game game) {
SystemUtil.addCardsForTesting(game);
private void addCardsForTesting(Game game, UUID playerId) {
SystemUtil.addCardsForTesting(game, null, game.getPlayer(playerId));
}
/**