mirror of
https://github.com/correl/mage.git
synced 2025-01-23 22:33:29 +00:00
41 lines
962 B
Java
41 lines
962 B
Java
|
|
|
|
package mage.player.ai;
|
|
|
|
import java.util.concurrent.Callable;
|
|
import mage.abilities.Ability;
|
|
import mage.game.Game;
|
|
import org.apache.log4j.Logger;
|
|
|
|
/**
|
|
*
|
|
* @author BetaSteward_at_googlemail.com
|
|
*/
|
|
public class SimulationWorker implements Callable {
|
|
|
|
private static final Logger logger = Logger.getLogger(SimulationWorker.class);
|
|
|
|
private Game game;
|
|
private SimulatedAction previousActions;
|
|
private Ability action;
|
|
private SimulatedPlayer player;
|
|
|
|
public SimulationWorker(Game game, SimulatedPlayer player, SimulatedAction previousActions, Ability action) {
|
|
this.game = game;
|
|
this.player = player;
|
|
this.previousActions = previousActions;
|
|
this.action = action;
|
|
}
|
|
|
|
@Override
|
|
public Object call() {
|
|
try {
|
|
// player.simulateAction(game, previousActions, action);
|
|
} catch (Exception ex) {
|
|
logger.error(null, ex);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
}
|
|
|