Пример #1
0
 public PrintCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
 }
Пример #2
0
 public CommandInterpreter(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory)
 {
     this.repository = repository;
     this.weaponFactory = weaponFactory;
     this.gemFactory = gemFactory;
 }
Пример #3
0
        public static void Main()
        {
            var weaponRepository = new WeaponRepository();
            var weaponFactory = new WeaponFactory();
            var gemFactory = new GemFactory();
            var commandInterpreter = new CommandInterpreter(weaponRepository, weaponFactory, gemFactory);

            var inputReader = new InputReader(commandInterpreter);
            inputReader.StartReadingCommands();
        }
Пример #4
0
 public RemoveGemFromWeaponCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName,
     int socketIndex)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
     this.socketIndex = socketIndex;
 }
Пример #5
0
 protected WeaponAndGemsCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName)
 {
     this.Repository = repository;
     this.WeaponFactory = weaponFactory;
     this.GemFactory = gemFactory;
     this.WeaponName = weaponName;
 }
Пример #6
0
 public CreateWeaponCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName,
     WeaponRarities weaponRarity,
     WeaponTypes weaponType)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
     this.weaponRarity = weaponRarity;
     this.weaponType = weaponType;
 }
Пример #7
0
 public AddGemToSocketCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName,
     int socketIndex,
     GemClarities gemClarity,
     GemTypes gemType)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
     this.socketIndex = socketIndex;
     this.gemClarity = gemClarity;
     this.gemType = gemType;
 }