magarena/src/magic/model/phase/MagicBeginOfCombatPhase.java

26 lines
655 B
Java
Raw Permalink Normal View History

2013-04-12 19:32:25 -07:00
package magic.model.phase;
import magic.model.MagicGame;
import magic.model.trigger.MagicTriggerType;
2013-04-12 19:32:25 -07:00
public class MagicBeginOfCombatPhase extends MagicPhase {
private static final MagicPhase INSTANCE=new MagicBeginOfCombatPhase();
2013-06-23 18:33:35 -07:00
2013-04-12 19:32:25 -07:00
private MagicBeginOfCombatPhase() {
2013-06-23 18:33:35 -07:00
super(MagicPhaseType.BeginOfCombat);
2013-04-12 19:32:25 -07:00
}
2013-06-23 18:33:35 -07:00
2013-04-12 19:32:25 -07:00
public static MagicPhase getInstance() {
return INSTANCE;
}
2013-06-23 18:33:35 -07:00
2013-04-12 19:32:25 -07:00
@Override
public void executeBeginStep(final MagicGame game) {
// Begin of combat triggers
game.executeTrigger(MagicTriggerType.AtBeginOfCombat,game.getTurnPlayer());
2015-12-31 02:54:52 -08:00
2013-04-12 19:32:25 -07:00
game.setStep(MagicStep.ActivePlayer);
}
}