Beispiel #1
0
    void conversion()
    {
        currentDay  = days;
        currentHour = hours;
        months      = (int)Timemanagercomponent.howmanymonthstotal();
        days        = (int)Timemanagercomponent.howmanydaystotal() - (months * 10.0f);
        hours       = (int)Timemanagercomponent.howmanyhourstotal() - (days * 24.0f);
        minutes     = (int)Timemanagercomponent.howmanyminutestotal() - (hours * 60.0f) - (days * 1440);

        sleeptime = (int)Timemanagercomponent.howmuchsleep();

        if (days > currentDay)
        {
            Rainhelper.ShouldItRain();
            field.randomKilling();
            newField.randomKilling();
        }

        if (hours > currentHour)
        {
            skyChange();
        }
    }