//2-4个占4个格子的装饰 void addIsland4(GridBase grid, int index, Hashtable map) { List <int> cells = grid.getCells(index, editorCfg.pageSize); int count = NumEx.NextInt(2, 5); for (int i = 0; i <= count; i++) { int id = NumEx.NextBool() ? 2 : 3; occupyCells(grid, cells, id, 1, map); } }