magarena/src/magic/test/TestDoubleStrikeDread.java

54 lines
2.0 KiB
Java
Raw Normal View History

package magic.test;
import magic.model.MagicGame;
import magic.model.MagicPlayer;
import magic.model.MagicPlayerDefinition;
import magic.model.MagicPlayerProfile;
import magic.model.MagicDuel;
import magic.model.phase.MagicMainPhase;
class TestDoubleStrikeDread extends TestGameBuilder {
public MagicGame getGame() {
2012-08-26 01:46:26 -07:00
final MagicDuel duel=new MagicDuel();
duel.setDifficulty(6);
final MagicPlayerProfile profile=new MagicPlayerProfile("bgruw");
final MagicPlayerDefinition player1=new MagicPlayerDefinition("Player",false,profile,15);
final MagicPlayerDefinition player2=new MagicPlayerDefinition("Computer",true,profile,14);
duel.setPlayers(new MagicPlayerDefinition[]{player1,player2});
duel.setStartPlayer(0);
final MagicGame game=duel.nextGame(true);
game.setPhase(MagicMainPhase.getFirstInstance());
final MagicPlayer player=game.getPlayer(0);
final MagicPlayer opponent=game.getPlayer(1);
MagicPlayer P = player;
P.setLife(10);
addToLibrary(P, "Plains", 10);
2012-08-26 01:46:26 -07:00
createPermanent(game,P,"Rupture Spire",false,8);
createPermanent(game,P,"Dread",false,1);
createPermanent(game,P,"Dissipation Field",false,1);
createPermanent(game,P,"Sword of Body and Mind",false,1);
createPermanent(game,P,"Sword of Light and Shadow",false,1);
createPermanent(game,P,"Hearthfire Hobgoblin", false, 1);
createPermanent(game,P,"Oracle of Nectars", false, 1);
addToGraveyard(P,"Oracle of Nectars", 1);
addToHand(P, "Pacifism", 2);
P = opponent;
2012-08-26 01:46:26 -07:00
P.setLife(10);
addToLibrary(P, "Plains", 10);
2012-08-26 01:46:26 -07:00
createPermanent(game,P,"Rupture Spire",false,8);
createPermanent(game,P,"Hearthfire Hobgoblin", false, 1);
createPermanent(game,P,"Dread",false,1);
createPermanent(game,P,"Dissipation Field",false,1);
addToHand(P, "Pacifism", 2);
2012-08-26 01:46:26 -07:00
return game;
}
}