Package org.jpokemon.pokemon.move

Examples of org.jpokemon.pokemon.move.MoveInfo


public class MoveInfoSelector extends JPokemonSelector<MoveInfo> {
  @Override
  protected void reloadItems() {
    removeAllItems();

    MoveInfo moveInfo;
    for (int i = 1; (moveInfo = MoveInfo.get(i)) != null; i++) {
      addElementToModel(moveInfo);
    }
  }
View Full Code Here


    levelField.setText(pokemon.level() + "");

    movePanel.removeAll();

    AvailableMoveSelector ams;
    MoveInfo amsValue;

    for (int i = 0; i < MoveBlock.movecount; i++) {
      ams = new AvailableMoveSelector();
      ams.reload();
View Full Code Here

  }

  private void setMoves() {
    pokemon.removeAllMoves();

    MoveInfo mi;
    AvailableMoveSelector ams;

    for (Component c : movePanel.getComponents()) {
      if (!(c instanceof AvailableMoveSelector)) {
        continue;
      }
      ams = (AvailableMoveSelector) c;
      mi = ams.getCurrentElement();

      if (mi == null) {
        continue;
      }

      try {
        pokemon.addMove(mi.getNumber());
      } catch (IllegalArgumentException e) {
        ams.setSelectedItem(null);
      }
    }
  }
View Full Code Here

TOP

Related Classes of org.jpokemon.pokemon.move.MoveInfo

Copyright © 2018 www.massapicom. 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.