Package org.jpokemon.battle.turn

Examples of org.jpokemon.battle.turn.AttackTurn


    if (moveIndex == -1 || targetId == null) { return null; }

    Slot userSlot = battle.getSlot(slotId);
    Slot targetSlot = battle.getSlot(targetId);

    return new AttackTurn(battle, userSlot, targetSlot, userSlot.party().get(0).move(moveIndex));
  }
View Full Code Here


      } while (slot.equals(randomSlot));

      int randomMoveIndex = (int) ((Math.random()) * slot.leader().moveCount());
      Move randomMove = slot.leader().move(randomMoveIndex);

      addTurn(new AttackTurn(this, slot, randomSlot, randomMove));
    }
  }
View Full Code Here

TOP

Related Classes of org.jpokemon.battle.turn.AttackTurn

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.