示例#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);
    }
示例#2
0
 public boolean done(Set<Action> options) {
   // TODO verify still valid
   return path == null || path.isEmpty();
 }