Package org.jpokemon.battle.turn

Examples of org.jpokemon.battle.turn.Turn


  @Override
  public void onReturn(Activity activity, Player player) {
    if (activity instanceof BuildTurnActivity) {
      BuildTurnActivity bta = (BuildTurnActivity) activity;
      Turn turn = bta.getTurn();
      addTurn(turn);

      JSONObject json = generateJson();
      for (Slot slot : this) {
        if (slot.trainer() instanceof Player) {
View Full Code Here


      turnQueue.add(turn);
    }

    // MADNESS
    while (!turnQueue.isEmpty()) {
      Turn turn = turnQueue.remove();

      turn.execute();

      if (!turn.target().leader().awake()) {
        log(turn.target().trainer().id() + "'s " + turn.target().leader().name() + " fainted");
        Turn turnToRemove = currentRoundTurns.get(turn.target().trainer().id());
        boolean turnWasRemoved = turnQueue.remove(turnToRemove);

        if (turn.target().party().awake() == 0) {
          log(turn.target().trainer().id() + " lost!");
          remove(turn.target().trainer());
View Full Code Here

TOP

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

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.