private Tile getTileAdjacent(int xoffset, int yoffset) { Tile tileBelow = null; int x = X + xoffset; int y = Y + yoffset; tileBelow = MyBoard.GetTile(x, y); return(tileBelow); }
private bool isBlockAbove() { bool flag = false; for (int y = Y; y >= 0; y--) { Tile tile = MyBoard.GetTile(X, y); if (tile != null) { Block bo = tile.GetBoardObect(TileLayer); if (bo != null && bo.State == BlockState.FALLING) { flag = true; break; } } } return(flag); }