Examples of canActivate()


Examples of flyingdiamond.model.chainreaction.ActivationChainReaction.canActivate()

   * @param col the specified article's column.
   */
  public void activateArticle(int row, int col){
    if (articles[row][col]!=null) {
      ActivationChainReaction reaction = articles[row][col].getActivationChainReaction();
      if(reaction.canActivate(row, col, this)){
        activatedCount=reaction.react(row, col, this);
        activated = true;
        activatedRow = row;
        activatedCol = col;
      }
View Full Code Here

Examples of mage.abilities.ActivatedAbility.canActivate()

    protected boolean canPlay(ActivatedAbility ability, ManaOptions available, MageObject sourceObject, Game game) {
        if (!(ability instanceof ManaAbility)) {
            ActivatedAbility copy = ability.copy();    
            copy.setCheckPlayableMode(); // prevents from endless loops for asking player to use effects by checking this mode
            if (!copy.canActivate(playerId, game)) {
                return false;
            }
            game.getContinuousEffects().costModification(copy, game);

            Card card = game.getCard(ability.getSourceId());
View Full Code Here

Examples of org.switchyard.deploy.Activator.canActivate()

       
        // Remove the old activator if it exists
        Iterator<Activator> activators = sy.getActivatorList().iterator();
        while (activators.hasNext()) {
            Activator activator = activators.next();
            if (activator.canActivate("mock")) {
                activators.remove();
            }
        }
       
        // Add new activator
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.