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