Beispiel #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);
    }
Beispiel #2
0
 public Set<Target> getTargets() {
   return Collections.unmodifiableSet(targets);
 }
Beispiel #3
0
 public Set<Food> getFood() {
   return Collections.unmodifiableSet(uneatenFood);
 }