Beispiel #1
0
    public bool CreateMap(int x, int y, bool newMap, bool defaultTraversable, bool destroyUnits)
    {
        ClearCells();
        if (destroyUnits)
        {
            ClearUnits();
        }

        CellCountX = x;
        CellCountY = y;
        CreateCells(newMap, defaultTraversable, fow != null);

        if (!destroyUnits)
        {
            ReAddUnits(Units);
        }

        if (fow)
        {
            fow.SetupStart(this);
        }

        ShowGameGrid(gameGridStatus);

        return(true);
    }