Examples of showMessage()


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

          && 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

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

        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

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

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

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

        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

Examples of org.rstudio.studio.client.common.GlobalDisplay.showMessage()

                      FileSystemItem.createFile(path).getParentPathString();
        
         if (!parentPath.equals(thisParent))
         {
            GlobalDisplay gDisp = RStudioGinjector.INSTANCE.getGlobalDisplay();
            gDisp.showMessage(
                  MessageDialog.ERROR,
                  "Error: Multiple Directories",
                  "The selected files are not all within the same directory " +
                  "(you can only ignore multiple files in one operation if " +
                  "they are located within the same directory).");
View Full Code Here

Examples of org.vngx.jsch.UserInfo.showMessage()

          if( !_userinfo.promptYesNo(String.format(MessageConstants.PROMPT_REPLACE_KEY,
              kex._hostKeyType.DISPLAY_NAME, Util.getFingerPrint(kex.K_S), file)) ) {
            throw new JSchException("HostKey has changed (StrictHostKeyChecking:ask): "+chost);
          }
        } else // shkc.equals("yes")
          _userinfo.showMessage(String.format(MessageConstants.INVALID_SERVER_HOST,
              kex._hostKeyType.DISPLAY_NAME, Util.getFingerPrint(kex.K_S), file));
          throw new JSchException("HostKey has changed (StrictHostKeyChecking:yes): "+chost);
        }
      }
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.