use of org.mage.test.player.TestComputerPlayer7 in project mage by magefree.
the class CardTestCommander4PlayersWithAIHelps method createPlayer.
@Override
protected TestPlayer createPlayer(String name, RangeOfInfluence rangeOfInfluence) {
// use same RangeOfInfluence.ALL as CardTestCommander4Players do
TestPlayer testPlayer = new TestPlayer(new TestComputerPlayer7(name, RangeOfInfluence.ALL, 6));
// AI can't play it by itself, use AI commands
testPlayer.setAIPlayer(false);
return testPlayer;
}
use of org.mage.test.player.TestComputerPlayer7 in project mage by magefree.
the class CardTestPlayerBaseWithAIHelps method createPlayer.
@Override
protected TestPlayer createPlayer(String name, RangeOfInfluence rangeOfInfluence) {
TestPlayer testPlayer = new TestPlayer(new TestComputerPlayer7(name, RangeOfInfluence.ONE, 6));
// AI can't play it by itself, use AI commands
testPlayer.setAIPlayer(false);
return testPlayer;
}
use of org.mage.test.player.TestComputerPlayer7 in project mage by magefree.
the class CardTestPlayerBaseAI method createPlayer.
@Override
protected TestPlayer createPlayer(String name, RangeOfInfluence rangeOfInfluence) {
if (name.equals("PlayerA")) {
TestPlayer testPlayer = new TestPlayer(new TestComputerPlayer7("PlayerA", RangeOfInfluence.ONE, skill));
testPlayer.setAIPlayer(true);
// enable AI logic simulation for all turns by default
testPlayer.setAIRealGameSimulation(true);
return testPlayer;
}
return super.createPlayer(name, rangeOfInfluence);
}
Aggregations