Search in sources :

Example 1 with TestComputerPlayer7

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;
}
Also used : TestPlayer(org.mage.test.player.TestPlayer) TestComputerPlayer7(org.mage.test.player.TestComputerPlayer7)

Example 2 with TestComputerPlayer7

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;
}
Also used : TestPlayer(org.mage.test.player.TestPlayer) TestComputerPlayer7(org.mage.test.player.TestComputerPlayer7)

Example 3 with TestComputerPlayer7

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);
}
Also used : TestPlayer(org.mage.test.player.TestPlayer) TestComputerPlayer7(org.mage.test.player.TestComputerPlayer7)

Aggregations

TestComputerPlayer7 (org.mage.test.player.TestComputerPlayer7)3 TestPlayer (org.mage.test.player.TestPlayer)3