예제 #1
0
    public FoodTaskTracker(FoodTaskDef taskDef) {
      super(taskDef);
      mouth = new Mouth(taskDef.getMouth());

      allFood = new HashSet<Food>();
      for (FoodSpec fs : taskDef.getFood()) {
        allFood.add(new Food(fs));
      }
      allFood = Collections.unmodifiableSet(allFood);

      uneatenFood.addAll(allFood);
    }
예제 #2
0
 public Set<Target> getTargets() {
   return Collections.unmodifiableSet(targets);
 }
예제 #3
0
 public Set<Food> getFood() {
   return Collections.unmodifiableSet(uneatenFood);
 }