예제 #1
0
    void ManageTerrainGeneration(int x, int y)//Manages which terrain get activated... basically either adds floors and walls or activate them.
    {
        if (!board.FloorPositionTaken(x, y))
        {
            board.GenerateTerrain(x, y);
        }
        else
        {
            board.ActivateFloor(x, y);
        }

        if (board.ObjectPositionTaken(x, y))
        {
            board.ActivateObject(x, y);
        }
    }