use of games.strategy.engine.random.IRandomStats in project triplea by triplea-game.
the class GameMenu method addShowDiceStats.
private void addShowDiceStats() {
add(SwingAction.of("Show Dice Stats", e -> {
final IRandomStats randomStats = (IRandomStats) game.getRemoteMessenger().getRemote(IRandomStats.RANDOM_STATS_REMOTE_NAME);
final RandomStatsDetails stats = randomStats.getRandomStats(gameData.getDiceSides());
JOptionPane.showMessageDialog(frame, new JScrollPane(stats.getAllStats()), "Random Stats", JOptionPane.INFORMATION_MESSAGE);
})).setMnemonic(KeyEvent.VK_D);
}
Aggregations