Ejemplo n.º 1
0
 public DamageViewModel()
 {
     attackKind          = new RadioEnumList(typeof(AttackKind), nameof(AttackKind));
     saveOpportunity     = new RadioEnumList(typeof(TimePoint), nameof(SaveOpportunity));
     damageHits          = new RadioEnumList(typeof(TimePoint), nameof(DamageHits));
     damageType          = new RadioEnumList(typeof(DamageType), nameof(DamageType));
     includeTargetSenses = new CheckEnumList(typeof(Senses));
     savingThrowAbility  = new CheckEnumList(typeof(Ability));
     includeCreatures    = new CheckEnumList(typeof(CreatureKinds));
     conditions          = new CheckEnumList(typeof(Conditions));
     creatureSizeFilter  = new CheckEnumList(typeof(CreatureSize));
 }
Ejemplo n.º 2
0
 public ModViewModel()
 {
     //damageType = new EnumList(typeof(DamageType), DndCore.DamageType.None, EnumListOption.Exclude);
     //attackKind = new EnumList(typeof(AttackKind));
     damageTypeFilter = new DamageFilterViewModel();
     damageTypeFilter.DamageType.Value = DamageType.None;
     damageTypeFilter.AttackKind.Value = AttackKind.Any;
     modConditions               = new CheckEnumList(typeof(Conditions), DndCore.Conditions.None, EnumListOption.Exclude);
     modConditions.Value         = DndCore.Conditions.None;
     modType                     = new RadioEnumList(typeof(ModType), "ModType");
     modType.Value               = DndCore.ModType.incomingAttack;
     modAddAbilityModifier       = new RadioEnumList(typeof(Ability), "AddModifier");
     modAddAbilityModifier.Value = Skills.none;
     repeats                     = DndTimeSpan.Never;
 }
Ejemplo n.º 3
0
        public AttackViewModel()
        {
            Damages = new ObservableCollection <DamageViewModel>();
            SuccessfulSaveDamages = new ObservableCollection <DamageViewModel>();


            type         = new RadioEnumList(typeof(AttackType), "AttackType", AttackType.None, EnumListOption.Exclude);
            rechargeOdds = new RadioEnumList(typeof(RechargeOdds), "RechargeOdds", DndCore.RechargeOdds.ZeroInSix, EnumListOption.Exclude);
            type.Value   = AttackType.Melee;
            targetLimit  = 1;
            reachRange   = 5;
            rangeMax     = 30;
            recharges    = DndTimeSpan.Never;
            lasts        = DndTimeSpan.OneMinute;
        }
Ejemplo n.º 4
0
 public SavingThrowViewModel()
 {
     ability = new RadioEnumList(typeof(Ability), nameof(Ability));
 }
 public DamageFilterViewModel()
 {
     damageType = new CheckEnumList(typeof(DamageType), DndCore.DamageType.None, EnumListOption.Exclude);
     attackKind = new RadioEnumList(typeof(AttackKind), nameof(AttackKind));
 }