temp.add(new Coordinate(x-1, y+1));
temp.add(new Coordinate(x, y+1));
temp.add(new Coordinate(x+1, y+1));
temp.add(wf);
MapData mapData = Game.getMapData();
for (int i = 0; i < temp.size(); i++) {
Coordinate coord = temp.get(i);
if (mapData.isOnMap(coord)) {
coords.add(coord);
}
}
Long[] fieldIDs = new Long[temp.size()];
for (int i = 0; i < coords.size(); i++) {
fieldIDs[i] = mapData.getFieldID(coords.get(i));
}
if (group.getFields().contains(wf)) {
//unmark fields
UnmarkField unmarkField = new UnmarkField(group, coords, fieldIDs);