Exemplo n.º 1
0
 //Conductor (spawn)
 public MotherBoard(string manufacturer, CPU cpu, RAM ram, HardDrive hardDrive, GPU gpu)
 {
     Manufacturer    = manufacturer;
     TemporaryMemory = ram;
     Processor       = cpu;
     Storage         = hardDrive;
     Graphics        = gpu;
 }
Exemplo n.º 2
0
 //constructor (spawner)
 public MotherBoard(string manufacturer, RAM ram, CPU cpu, HardDrive hardDrive, GPU gpu)
 {
     temporaryMemory = ram;
     processor       = cpu;
     storage         = hardDrive;
     graphics        = gpu;
 }
Exemplo n.º 3
0
 public void CheckRequirementsForGame(Game game, HardDrive hardDrive, RAM ram, GPU gpu)
 {
     if (ram.TotalGigabytes > game.RequiredRam && hardDrive.AvailableStorage > game.RequiredStorage && gpu.EffectiveMemory > game.RequiredEffectiveMemory)
     {
         ProcessInstallApp(game, hardDrive, ram);
     }
 }
        //Game class has a variable RequiredEffectiveMemory

        public bool CheckRequirements(Application application, HardDrive hardDrive, RAM ram, GPU gpu)
        {
            bool installApplication = false;


            if (ram.temporaryMemory > application.requiredRAM && hardDrive.totalStorage > application.requiredStorage || gpu.effectiveMemory > application.requiredEffectiveMemory)
            {
                ProcessInstall(application, hardDrive, ram);
                installApplication = true;
            }
            return(installApplication);
        }
Exemplo n.º 5
0
 public void CheckRequirementsForApp(Applications app, HardDrive hardDrive, RAM ram, GPU gpu)
 {
     if (ram.TotalGigabytes > app.RequiredRam && hardDrive.AvailableStorage > app.RequiredStorage)
     {
         ProcessInstallApp(app, hardDrive, ram);
     }
 }