Examples of addStatus()


Examples of org.pokenet.server.battle.Pokemon.addStatus()

        if (eff == null)
          return 0;
        StatusEffect clone = (StatusEffect)eff.clone();
        if (!target.hasEffect(StatusEffect.SPECIAL_EFFECT_LOCK)) {
          user.removeStatus(eff);
          target.addStatus(user, clone);
        }
        return 0;
      }
    }
    ));
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

        if (!user.isFirstTurn()) {
          user.getField().showMessage("But it failed!");
          return 0;
        }
        if ((getEffectiveness(user, target) != 0.0) && !target.hasSubstitute()) {
          target.addStatus(user, new FlinchEffect());
        }
        return super.use(mech, user, target);
      }
      public int getPriority() {
        return 1;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

        if ((ability != null) && ability.isActive()) {
          ability.unapply(target);
          ability.deactivate();
        }
        user.getField().showMessage(target.getName() + "'s ability was nullified.");
        target.addStatus(user, new StatusEffect() {
          public String getName() {
            return "Gastro Acid";
          }
        });
        return 0;
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

      public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
        if (target.hasSubstitute()) {
          user.getField().showMessage("But it failed!");
          return 0;
        }
        target.addStatus(user, new StatusEffect() {
          public boolean apply(Pokemon p) {
            HoldItem item = p.getItem();
            if ((item != null) && item.isActive()) {
              item.unapply(p);
              item.deactivate();
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

              public boolean isListener() {
                return true;
              }
              public void informDamaged(Pokemon source, Pokemon target, MoveListEntry move, int damage) {
                target.getField().showMessage(target.getName() + " is angry!");
                target.addStatus(target, new StatChangeEffect(Pokemon.S_ATTACK, true));
              }
            }
        },
        new boolean[] { true },
        new double[] { 1.0 }
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

                    if (m_power == 0) {
                        user.getField().showMessage("But it failed!");
                    }
                    continue;
                }
                if (affected.addStatus(user, m_statuses[i]) == null) {
                    if (m_power == 0) {
                        // Only show the message if it is a primary effect.
                        m_statuses[i].informDuplicateEffect(affected);
                    }
                }
View Full Code Here

Examples of org.pokenet.server.battle.Pokemon.addStatus()

       return true;
     }
     public boolean tickField(BattleField field) {
       if (--m_turns == 0) {
         Pokemon poke = field.getActivePokemon()[m_party];
         poke.addStatus(poke.getOpponent(), m_effect);
         field.removeEffect(this);
         return true;
       }
       return false;
     }
View Full Code Here

Examples of org.rhq.core.domain.cloud.Server.addStatus()

        if (serverIds.length > 0) {
            try {
                for (Integer id : serverIds) {
                    Server server = entityManager.find(Server.class, id);
                    if (manualMaintenance) {
                        server.addStatus(Server.Status.MANUAL_MAINTENANCE_MODE);
                    } else {
                        server.clearStatus(Server.Status.MANUAL_MAINTENANCE_MODE);
                    }
                }
            } catch (Exception e) {
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addStatus()

                RequestStatus rs = plan.getRequestStatus(anIusAdded);
                if (rs.getSeverity() == IStatus.ERROR) {
                    // This is a serious error so it must also appear in the overall status
                    IStatus fail = new Status(IStatus.ERROR, "temp", 10011, anIusAdded.getId() +
                            " is not applicable to the current configuration and will not be installed.", null);
                    report.addStatus(anIusAdded, fail);
                    report.addSummaryStatus(fail);
                    report.addFailedInstallableUnit(anIusAdded);
                } else {
                    report.addReviewedInstallableUnit(anIusAdded);
                }
View Full Code Here

Examples of org.wso2.carbon.component.mgt.core.ResolutionResult.addStatus()

                if (rs.getSeverity() == IStatus.ERROR) {
                    // We are making assumptions here about why the planner chose to ignore an uninstall.
                    IStatus fail = new Status(IStatus.INFO, "temp", 10007, anIusRemoved.getId() +
                            " cannot be fully uninstalled because other installed software requires it.  " +
                            "The parts that are not required will be uninstalled.", null);
                    report.addStatus(anIusRemoved, fail);
                    report.addSummaryStatus(fail);
                    report.addFailedUninstallableUnit(anIusRemoved);
                } else {
                    report.addReviewedUninstallableUnit(anIusRemoved);
                }
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.