Example #1
0
        protected override void ConfigurationMateriauxTraite()
        {
            if (CheckNumber.IsPrime(noCentreTriage))
            {
                //Application propriete d'un centre de tri composé d'un nombre premier.
                nbPremier = true;

                SetCapaciteMax((int)Materiau.Listemateriaux.URANIUM, 2456);
                SetCapaciteMax((int)Materiau.Listemateriaux.METAUX_LOURD, 561);
            }
            if (CheckNumber.isDivibleBy5(noCentreTriage))
            {
                //Application des propriete d'un centre de tri composé d'un multiple de 5.
                nbDiv5 = true;

                SetCapaciteMax((int)Materiau.Listemateriaux.TERRE_CONTAMINE, 2658);
                SetCapaciteMax((int)Materiau.Listemateriaux.PLUTONIUM, 3067);
            }
            if (!nbDiv5 && !nbPremier)
            {
                //Centre de tri pair sans condition secondaire
                SetCapaciteMax((int)Materiau.Listemateriaux.URANIUM, 2456);
                SetCapaciteMax((int)Materiau.Listemateriaux.METAUX_LOURD, 561);
                SetCapaciteMax((int)Materiau.Listemateriaux.TERRE_CONTAMINE, 2658);
                SetCapaciteMax((int)Materiau.Listemateriaux.PLUTONIUM, 3067);
                SetCapaciteMax((int)Materiau.Listemateriaux.COMBUSTIBLES_FOSSILLE, 8234);
            }
        }