Examples of MoveQueueException


Examples of org.pokenet.server.battle.mechanics.MoveQueueException

  /**
   * Return the effect that vetoes the use of a particular one of this pokemon's
   * moves.
   */
  public StatusEffect getVetoingEffect(int idx) throws MoveQueueException {
    if ((idx < 0) || (idx >= m_move.length)) { throw new MoveQueueException(
    "No such move."); }
    MoveListEntry entry = m_move[idx];
    if (entry == null) { throw new MoveQueueException("No such move."); }
    synchronized (m_statuses) {
      Iterator<StatusEffect> i = m_statuses.iterator();
      while (i.hasNext()) {
        StatusEffect j = i.next();
        if ((j == null) || !j.isActive()) {
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.