Exemplo n.º 1
0
 public CharacterFactory(IModel model)
 {
     _model        = model;
     _spellFactory = _model.SpellFactory;
     _names        = new List <string>(File.ReadAllLines("content/etc/Names.txt"));
     BossList      = new List <string>();
     _specialChars = new Dictionary <string, ICharacter>();
     _passives     = new Dictionary <string, List <IAffliction> >();
 }
Exemplo n.º 2
0
        public MonsterFactory(IWeaponFactory weaponFactory, ISpellFactory spellFactory, IItemFactory itemFactory, IMonsterDataRepository monsterDataRepository, IActionSelector actionSelector, IStatsGenerator statsGenerator, IDice dice)
        {
            this.weaponFactory = weaponFactory;
            this.spellFactory = spellFactory;
            this.itemFactory = itemFactory;
            _actionSelector = actionSelector;
            _statsGenerator = statsGenerator;
            _dice = dice;

            monsterArchetypes = monsterDataRepository.GetAllMonsterArchetypes().ToList();
            monsterModifiers = monsterDataRepository.GetAllMonsterModifiers().ToList();
        }