Package mage.constants

Examples of mage.constants.TurnPhase


      phase.resetCount();
    }
  }

  private void playExtraPhases(Game game, TurnPhase afterPhase) {
    TurnPhase extraPhase = game.getState().getTurnMods().extraPhase(activePlayerId, afterPhase);
    if (extraPhase == null)
      return;
    Phase phase;
    switch(extraPhase) {
      case BEGINNING:
View Full Code Here


    }

    public void resumePlay(Game game, boolean wasPaused) {
        activePlayerId = game.getActivePlayerId();
        UUID priorityPlayerId = game.getPriorityPlayerId();
        TurnPhase phaseType = game.getPhase().getType();
        PhaseStep stepType = game.getStep().getType();

        Iterator<Phase> it = phases.iterator();
        Phase phase;
        do {
View Full Code Here

    private boolean playExtraPhases(Game game, TurnPhase afterPhase) {
        TurnMod extraPhaseTurnMod = game.getState().getTurnMods().extraPhase(activePlayerId, afterPhase);
        if (extraPhaseTurnMod == null) {
            return false;
        }
        TurnPhase extraPhase = extraPhaseTurnMod.getExtraPhase();
        if (extraPhase == null) {
            return false;
        }
        Phase phase;
        switch(extraPhase) {
View Full Code Here

    }

    @Override
    public boolean apply(Game game, Ability source) {
        if (game.getActivePlayerId().equals(source.getControllerId())) {
            TurnPhase turnPhase = game.getTurn().getPhase().getType();
            if (turnPhase.equals(TurnPhase.BEGINNING) || turnPhase.equals(TurnPhase.PRECOMBAT_MAIN)) {
                return true;
            }
            if (turnPhase.equals(TurnPhase.COMBAT)) {
                return !game.getTurn().isDeclareAttackersStepStarted();
            }
        }
        return false;
    }
View Full Code Here

TOP

Related Classes of mage.constants.TurnPhase

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.