Ejemplo n.º 1
0
        public void AddModifier(Affect.Apply type, int amount)
        {
            AffectApplyType apply = new AffectApplyType();

            apply.Location = type;
            apply.Amount   = amount;
            if (_modifiers == null)
            {
                _modifiers = new List <AffectApplyType>();
            }
            _modifiers.Add(apply);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor that takes a spell argument to create an affect and set its paramters.
        /// </summary>
        /// <param name="type"></param>
        /// <param name="name"></param>
        /// <param name="duration"></param>
        /// <param name="location"></param>
        /// <param name="modifier"></param>
        /// <param name="bitvector"></param>
        public Affect(AffectType type, string name, int duration, Apply location, int modifier, Bitvector bitvector)
        {
            _modifiers = new List <AffectApplyType>();
            _value     = name;
            _type      = type;
            _duration  = duration;
            AffectApplyType apply = new AffectApplyType();

            apply.Amount   = modifier;
            apply.Location = location;
            _modifiers.Add(apply);
            SetBitvector(bitvector);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Constructor that takes a spell argument to create an affect and set its paramters.
 /// </summary>
 /// <param name="type"></param>
 /// <param name="name"></param>
 /// <param name="duration"></param>
 /// <param name="location"></param>
 /// <param name="modifier"></param>
 /// <param name="bitvector"></param>
 public Affect(AffectType type, string name, int duration, Apply location, int modifier, Bitvector bitvector)
 {
     _modifiers = new List<AffectApplyType>();
     _value = name;
     _type = type;
     _duration = duration;
     AffectApplyType apply = new AffectApplyType();
     apply.Amount = modifier;
     apply.Location = location;
     _modifiers.Add(apply);
     SetBitvector(bitvector);
 }
Ejemplo n.º 4
0
 public void AddModifier(Affect.Apply type, int amount)
 {
     AffectApplyType apply = new AffectApplyType();
     apply.Location = type;
     apply.Amount = amount;
     if (_modifiers == null)
     {
         _modifiers = new List<AffectApplyType>();
     }
     _modifiers.Add(apply);
 }