コード例 #1
0
 @Override
 public Attack getMove(IBattleParticipant participant2) {
   return Attack.getWhichMoveIsBest(
       trainer.releasedPokemon.getHelper().getMoveset(),
       participant2.currentPokemon().getType(),
       trainer.releasedPokemon.getHelper(),
       participant2.currentPokemon());
 }
コード例 #2
0
 @Override
 public void EndBattle(boolean didWin, IBattleParticipant foe) {
   trainer.releasedPokemon.getHelper().getBattleStats().clearBattleStats();
   trainer.releasedPokemon.EndBattle();
   trainer.healAllPokemon();
   this.trainer.setAttackTarget(null);
   if (didWin) trainer.winBattle(foe.currentPokemon().getOwner());
   else trainer.loseBattle(foe.currentPokemon().getOwner());
 }