//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);
        }
Example #2
0
 public void ProcessInstallGame(Game game, HardDrive hardDrive, RAM ram)
 {
     hardDrive.ApplicationsInHardDrive.Add(game);
 }
 //member methods (can do)
 public void ProcessInstall(Application application, HardDrive hardDrive, RAM ram)
 {
     hardDrive.ApplicationsInHardDrive.Add(application);
 }
Example #4
0
        //Member method (Can do)

        public void ProcessInstallApp(Applications app, HardDrive hardDrive, RAM ram)
        {
            hardDrive.ApplicationsInHardDrive.Add(app);
        }