示例#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);
 }