2013-04-12 19:32:25 -07:00
|
|
|
package magic.model.phase;
|
|
|
|
|
|
|
|
import magic.model.MagicGame;
|
2014-03-22 18:17:30 -07:00
|
|
|
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) {
|
2014-03-22 18:17:30 -07:00
|
|
|
// 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);
|
|
|
|
}
|
|
|
|
}
|