docs: public static void logReward(String reward) {
          if (!logging || !isScoring())
              return;
          if (scoringPolicy == LOG_EACH_REWARD) {
              log("<Reward>" + reward + "</Reward>");
          } else if (scoringPolicy == TOTAL_ALL_REWARDS || scoringPolicy == TOTAL_WITH_MISSION_XML) {
              int i = reward.indexOf(":");
              totalRewards += Double.parseDouble(reward.substring(i + 1));
          }
      }