protected virtual int TileToDraw(int x, int y) { if (y < 0 || y >= TheMap.Height || x < 0 || x >= TheMap.Width) { return(Extender.GetOutsideTile(centerPoint, x, y)); } return(TheMap[x, y]); }