Example #1
0
    public Action step(Set<Action> options) {
      Room here = worldToPrivate.get(hunter.location());

      if (path == null || path.isEmpty()) {
        return null;
      }
      Room next = path.remove(0);
      return hunter.move(privateToWorld.get(next), options);
    }
Example #2
0
 public boolean done(Set<Action> options) {
   // TODO verify still valid
   return path == null || path.isEmpty();
 }