/** * 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; }
public boolean isInBounds(AbsPos pos) { return grid.isInBounds(pos); }