private void BuildParkElement(ParkElement element, Action <Button> action) { int x = element.X; int y = element.Y; if (element.AreaSize == 1) { action(_buttonGrid[x, y]); } else if (element.AreaSize == 4) { action(_buttonGrid[x, y]); action(_buttonGrid[x - 1, y]); action(_buttonGrid[x, y - 1]); action(_buttonGrid[x - 1, y - 1]); } }
public string Visit(ParkElement park) { return($"玩游戏"); }
public string Visit(ParkElement park) { return($"跳广场舞"); }