Пример #1
0
        //

        // Construtor que define qual é o valor da variável _weapon.
        public WeaponDecorator(Weapons weapon)
        {
            this._weapon = weapon;
        }
Пример #2
0
        //

        // Construtor de RuneDurability. Aqui é definido os valores do upgrade.
        public RuneDurability(Weapons weapon, int addurability,
                              string addname) : base(weapon)
        {
            this.AddDurability = addurability;
            this.AddName       = addname;
        }