Beispiel #1
0
 public Motherboard(string manufacturer, CPU processor, RAM temporaryMemory, HardDrive storage, GPU graphics)
 {
     this.manufacturer    = manufacturer;
     this.processor       = processor;
     this.temporaryMemory = temporaryMemory;
     this.storage         = storage;
     this.graphics        = graphics;
 }
Beispiel #2
0
        public Computer()
        {
            CPU       processor  = new CPU("Intel", "i3");
            RAM       tempMemory = new RAM(2.0, "MemEx");
            HardDrive storage    = new HardDrive(250.0, 250.0);
            GPU       graphics   = new GPU("BlazeGraphics", 2.0);

            motherboard = new Motherboard("Dell", processor, tempMemory, storage, graphics);
        }
        public bool CheckGameRequirements(Games game, HardDrive hardDrive, RAM ram, GPU graphics)
        {
            bool canRun = false;

            if (ram.totalGigabytes >= game.RequiredRAM && hardDrive.availableStorage >= game.RequiredStorage && game.requiredEffectiveMemory >= graphics.effectiveMemory)
            {
                hardDrive.ApplicationsInHardDrive.Add(game);
                canRun = true;
            }
            else
            {
                Console.WriteLine($"Your computer does not meet the minimum requirements for installing {game.ApplicationName}!");
            }


            return(canRun);
        }
        public bool CheckRequirements(Applications app, HardDrive hardDrive, RAM ram, GPU graphics)
        {
            bool canRun = false;


            if (ram.totalGigabytes >= app.RequiredRAM && hardDrive.availableStorage >= app.RequiredStorage)
            {
                hardDrive.ApplicationsInHardDrive.Add(app);
                canRun = true;
            }
            else
            {
                Console.WriteLine($"Your computer does not meet the minimum requirements for installing {app.ApplicationName}!");
            }

            return(canRun);
        }
 public void ProcessGameInstall(Games game, HardDrive hardDrive)
 {
     hardDrive.ApplicationsInHardDrive.Add(game);
 }
 public void ProcessStandardInstall(Applications app, HardDrive hardDrive)
 {
     hardDrive.ApplicationsInHardDrive.Add(app);
 }