Beispiel #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;
  }
Beispiel #2
0
 public boolean isInBounds(AbsPos pos) {
   return grid.isInBounds(pos);
 }