Examples of throwPokeball()


Examples of org.pokenet.server.battle.impl.WildBattleField.throwPokeball()

      } else if (i.getAttributes().contains(ItemAttribute.BATTLE)) {
        /* Pokeballs */
        if (i.getName().equalsIgnoreCase("POKE BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
            WildBattleField w = (WildBattleField) p.getBattleField();
            if (!w.throwPokeball(PokeBall.POKEBALL))
              w.queueMove(0, BattleTurn.getMoveTurn(-1));
            return true;
          }
        } else if (i.getName().equalsIgnoreCase("GREAT BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
View Full Code Here

Examples of org.pokenet.server.battle.impl.WildBattleField.throwPokeball()

            return true;
          }
        } else if (i.getName().equalsIgnoreCase("GREAT BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
            WildBattleField w = (WildBattleField) p.getBattleField();
            if (!w.throwPokeball(PokeBall.GREATBALL))
              w.queueMove(0, BattleTurn.getMoveTurn(-1));
            return true;
          }
        } else if (i.getName().equalsIgnoreCase("ULTRA BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
View Full Code Here

Examples of org.pokenet.server.battle.impl.WildBattleField.throwPokeball()

            return true;
          }
        } else if (i.getName().equalsIgnoreCase("ULTRA BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
            WildBattleField w = (WildBattleField) p.getBattleField();
            if (!w.throwPokeball(PokeBall.ULTRABALL))
              w.queueMove(0, BattleTurn.getMoveTurn(-1));
            return true;
          }
        } else if (i.getName().equalsIgnoreCase("MASTER BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
View Full Code Here

Examples of org.pokenet.server.battle.impl.WildBattleField.throwPokeball()

            return true;
          }
        } else if (i.getName().equalsIgnoreCase("MASTER BALL")) {
          if (p.getBattleField() instanceof WildBattleField) {
            WildBattleField w = (WildBattleField) p.getBattleField();
            if (!w.throwPokeball(PokeBall.MASTERBALL))
              w.queueMove(0, BattleTurn.getMoveTurn(-1));
            return true;
          }
        }
      }
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.