Exemple #1
0
        // METHODS //
        public void InitSellList()
        {
            Motor _motor = new Motor();
            Solar _solar = new Solar();

            _sellList.Add(_motor);
            _sellList.Add(_solar);
//			_sellList.Add (_potion);
        }
Exemple #2
0
        // Adds one power to any device of the player's choice
        public void AddPower(Device chosenDevice)
        {
            Solar _solar = new Solar();

            if ((_activeDevice == _solar) && (_solar.BatUnits >= _solar.BatDrainUnits))
            {
                _solar.BatUnits       -= _solar.BatDrainUnits;
                chosenDevice.BatUnits += 1;
            }
        }