示例#1
0
 @Override
 public void onFinish() {
   log.info("Runtime: " + Timer.format(painter.getRunTime()));
   log.info(
       "Money made: "
           + (moneyHandler.getTotalMoneyMade() / 1000)
           + "."
           + (moneyHandler.getTotalMoneyMade() % 1000)
           + "k");
   log.info("XP gained: " + painter.xPGained());
   log.info("XP/hr: " + painter.xPPerHour());
 }
示例#2
0
 @Override
 public int loop() {
   for (Strategy currentStrategy : strategies) {
     if (currentStrategy.isValid()) {
       painter.setTotalMoneyMade(moneyHandler.getTotalMoneyMade());
       currentStrategy.execute();
     }
   }
   return Random.nextInt(300, 600);
 }