added test scenario for Oona
parent
e18c876bf4
commit
01cf626f7a
|
@ -0,0 +1,42 @@
|
|||
package magic.test;
|
||||
|
||||
import magic.model.MagicDuel;
|
||||
import magic.model.MagicGame;
|
||||
import magic.model.MagicPlayer;
|
||||
import magic.model.MagicPlayerDefinition;
|
||||
import magic.model.MagicPlayerProfile;
|
||||
import magic.model.phase.MagicMainPhase;
|
||||
|
||||
class TestOona extends TestGameBuilder {
|
||||
public MagicGame getGame() {
|
||||
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, "Mountain", 20);
|
||||
createPermanent(game,P,"Rupture Spire",false,9);
|
||||
addToHand(P, "Oona, Queen of the Fae", 1);
|
||||
|
||||
P = opponent;
|
||||
|
||||
P.setLife(5);
|
||||
addToLibrary(P, "Flailing Drake", 20);
|
||||
createPermanent(game,P,"Rupture Spire",false,9);
|
||||
addToHand(P, "Flailing Drake", 2);
|
||||
|
||||
return game;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue