예제 #1
0
  /**
   * Get reference to Entity at position p
   *
   * @param p Position to look
   * @return Entity at position p
   */
  public Entity get(AbsPos p) {
    if (!grid.isInBounds(p)) {
      return TO_APPEAR_OUTSIDE_GRID;
    }

    Entity found = grid.get(p);
    return found;
  }
예제 #2
0
 public boolean isInBounds(AbsPos pos) {
   return grid.isInBounds(pos);
 }