Esempio n. 1
0
 public PrintCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
 }
Esempio n. 2
0
 public CommandInterpreter(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory)
 {
     this.repository = repository;
     this.weaponFactory = weaponFactory;
     this.gemFactory = gemFactory;
 }
Esempio n. 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();
        }
Esempio n. 4
0
 public RemoveGemFromWeaponCommand(
     IDatabase<Weapon> repository,
     WeaponFactory weaponFactory,
     GemFactory gemFactory,
     string weaponName,
     int socketIndex)
     : base(repository, weaponFactory, gemFactory, weaponName)
 {
     this.socketIndex = socketIndex;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }
Esempio n. 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;
 }