Package org.pokenet.server.battle

Examples of org.pokenet.server.battle.BattleField.showMessage()


           || p.hasAbility("Levitate")
           || (getLayers(p) <= 0)) {
         return;
       }
       if (p.isType(PokemonType.T_POISON)) {
         field.showMessage(p.getName() + " absorbed the Toxic Spikes!");
         removeSpikes(p);
         return;
       }
       int layers = getLayers(p);
       if (layers == 1) {
View Full Code Here


         return;
       }
       int layers = getLayers(p);
       if (layers == 1) {
         if (p.addStatus(null, new PoisonEffect()) != null) {
           field.showMessage(p.getName() + " was poisoned by the Toxic Spikes!");
         }
       } else if (layers == 2) {
         if (p.addStatus(null, new ToxicEffect()) != null) {
           field.showMessage(p.getName() + " was badly poisoned by the Toxic Spikes!");
         }
View Full Code Here

         if (p.addStatus(null, new PoisonEffect()) != null) {
           field.showMessage(p.getName() + " was poisoned by the Toxic Spikes!");
         }
       } else if (layers == 2) {
         if (p.addStatus(null, new ToxicEffect()) != null) {
           field.showMessage(p.getName() + " was badly poisoned by the Toxic Spikes!");
         }
       }
     }
   }
View Full Code Here

          && super.attemptHit(mech, user, target)) {
        target.changeHealth(-damage);
        return damage;
      } else if (protect) {
        StatusEffect eff = target.getEffect(ProtectEffect.class);
        field.showMessage(target.getName() + eff.getDescription());
      }
      field.showMessage(user.getName() + " kept going and crashed!");
      int recoil = (int)((double)damage / 2.0);
      int max = target.getStat(Pokemon.S_HP) / 2;
      if (recoil > max) {
View Full Code Here

        return damage;
      } else if (protect) {
        StatusEffect eff = target.getEffect(ProtectEffect.class);
        field.showMessage(target.getName() + eff.getDescription());
      }
      field.showMessage(user.getName() + " kept going and crashed!");
      int recoil = (int)((double)damage / 2.0);
      int max = target.getStat(Pokemon.S_HP) / 2;
      if (recoil > max) {
        recoil = max;
      }
View Full Code Here

       if (!field.applyEffect(new TypeCutStatus(m_cut, user) {
         public String getName() {
           return name;
         }
       })) {
         field.showMessage("But it failed!");
       }
       return 0;
     }
   }
View Full Code Here

        return;
      }
      m_active[party] = true;
      m_turns[party] = 5;
      if (m_startMessage != null) {
        field.showMessage(
            field.getActivePokemon()[party].getName() + m_startMessage);
      }
    }
    public boolean isActive(int party) {
      if ((party < 0) || (party > m_active.length)) return false;
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.