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