//Conductor (spawn) public MotherBoard(string manufacturer, CPU cpu, RAM ram, HardDrive hardDrive, GPU gpu) { Manufacturer = manufacturer; TemporaryMemory = ram; Processor = cpu; Storage = hardDrive; Graphics = gpu; }
//constructor (spawner) public MotherBoard(string manufacturer, RAM ram, CPU cpu, HardDrive hardDrive, GPU gpu) { temporaryMemory = ram; processor = cpu; storage = hardDrive; graphics = gpu; }
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); }
public void CheckRequirementsForApp(Applications app, HardDrive hardDrive, RAM ram, GPU gpu) { if (ram.TotalGigabytes > app.RequiredRam && hardDrive.AvailableStorage > app.RequiredStorage) { ProcessInstallApp(app, hardDrive, ram); } }