/** * Gets the local X coordinate relative to the base Position. * * @param base the base Position * @return the local X coordinate */ public int getLocalX(Position base) { return x - 8 * base.getRegionX(); }