Beispiel #1
0
    /// <summary>
    /// Seeds the random number generator with an automatically-determined value, then builds the game map.
    /// </summary>
    /// <param name="mapOfTheDay">If true, the RNG will be seeded with today's date. If false,
    /// the RNG will be seed with the current date and time to the millisecond.</param>
    public void GenerateMap(bool mapOfTheDay)
    {
        if (mapOfTheDay)
        {
            CustomFunctions.InitRandomToToday();
        }
        else
        {
            CustomFunctions.InitRandomToNow();
        }

        MapBuilder();
    }