// constructor (SPAWNER) public Motherboard(string manufacturer, CPU cpu, RAM ram, HardDrive hardDrive, GPU gpu) { this.manufacturer = manufacturer; processor = cpu; temporaryMemory = ram; storage = hardDrive; graphics = gpu; }
public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram) { if (ram.totalGigabytes > app.requireRAM && hardDrive.totalStorage > app.requireStorage) { ProcessInstall(app, hardDrive, ram); } return(true); }
//methods (can do) public void Installations() { HardDrive hardDrive = new HardDrive(2, 2); RAM ram = new RAM(1, "Sony"); Games game = new Games(50); gpu.GameInstall(game, hardDrive, ram); }
public bool CheckMemory(Games requiredEffectiveMemory, HardDrive hardDrive, RAM ram) { if (ram.totalGigabytes > requiredEffectiveMemory.requireRAM && hardDrive.totalStorage > requiredEffectiveMemory.requireStorage) { GameInstall(requiredEffectiveMemory, hardDrive, ram); } return(true); }
// methods (CAN DO) public void ProcessInstall(Applications app, HardDrive hardDrive, RAM ram) { Applications application = app; hardDrive.applicationsInHardDrive.Add(application); }
// methods (CAN DO) public void GameInstall(Games requiredEffectiveMemory, HardDrive hardDrive, RAM ram) { Games game = requiredEffectiveMemory; hardDrive.gamesInHardDrive.Add(requiredEffectiveMemory); }