Ejemplo n.º 1
0
 public void reset(final MarioAIOptions args) {
   deadEndsCount = 0;
   cannonsCount = 0;
   hillStraightCount = 0;
   tubesCount = 0;
   blocksCount = 0;
   coinsCount = 0;
   gapsCount = 0;
   hiddenBlocksCount = 0;
   mushrooms = 0;
   flowers = 0;
   creatures = 0;
   greenMushrooms = 0;
   totalHillStraight = args.getHillStraightCount() ? Integer.MAX_VALUE : 0;
   totalCannons = args.getCannonsCount() ? Integer.MAX_VALUE : 0;
   totalGaps = args.getGapsCount() ? Integer.MAX_VALUE : 0;
   totalDeadEnds = args.getDeadEndsCount() ? Integer.MAX_VALUE : 0;
   totalBlocks = args.getBlocksCount() ? Integer.MAX_VALUE : 0;
   totalHiddenBlocks = args.getHiddenBlocksCount() ? Integer.MAX_VALUE : 0;
   totalCoins = args.getCoinsCount() ? Integer.MAX_VALUE : 0;
   totalTubes = args.getTubesCount() ? Integer.MAX_VALUE : 0;
   resetUncountableCounters();
 }