Exemple #1
0
 public void Activate(ConditionsC condition, MabiDictionary extra = null)
 {
     this.C |= condition; if (extra != null)
     {
         this.SetExtra((double)condition, 2, extra);
     }
     Send.ConditionUpdate(_creature); this.Changed.Raise(_creature);
 }
Exemple #2
0
		public void Deactivate(ConditionsC condition)
		{
			this.C &= ~condition;

			var id = (int)Math.Log((double)condition, 2) + 64 * 2;
			lock (_extra)
			{
				if (_extra.ContainsKey(id))
					_extra.Remove(id);
			}

			_extraCache = null;

			Send.ConditionUpdate(_creature);
		}
Exemple #3
0
		public void Activate(ConditionsC condition, short val)
		{
			this.C |= condition;

			var id = (int)Math.Log((double)condition, 2) + 64 * 2;
			lock (_extra)
			{
				if (!_extra.ContainsKey(id))
					_extra[id] = new MabiDictionary();
				_extra[id].SetShort("VAL", val);
			}

			_extraCache = null;

			Send.ConditionUpdate(_creature);
		}
Exemple #4
0
        public void Deactivate(ConditionsC condition)
        {
            this.C &= ~condition;

            var id = (int)Math.Log((double)condition, 2) + 64 * 2;

            lock (_extra)
            {
                if (_extra.ContainsKey(id))
                {
                    _extra.Remove(id);
                }
            }

            _extraCache = null;

            Send.ConditionUpdate(_creature);
        }
Exemple #5
0
        public void Activate(ConditionsC condition, short val)
        {
            this.C |= condition;

            var id = (int)Math.Log((double)condition, 2) + 64 * 2;

            lock (_extra)
            {
                if (!_extra.ContainsKey(id))
                {
                    _extra[id] = new MabiDictionary();
                }
                _extra[id].SetShort("VAL", val);
            }

            _extraCache = null;

            Send.ConditionUpdate(_creature);
        }
		public void Deactivate(ConditionsC condition) { this.C &= ~condition; this.RemoveExtra((double)condition, 2); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
		public void Activate(ConditionsC condition, MabiDictionary extra = null, int duration = -1) { this.C |= condition; if (extra != null) this.SetExtra((double)condition, 2, extra); if (duration > 0) this.SetDuration((double)condition, 2, duration); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
		public bool Has(ConditionsC condition) { return ((this.C & condition) != 0); }
Exemple #9
0
 public void Activate(ConditionsC condition)
 {
     this.C |= condition; Send.ConditionUpdate(_creature);
 }
Exemple #10
0
 public bool Has(ConditionsC condition)
 {
     return((this.C & condition) != 0);
 }
Exemple #11
0
 public void Deactivate(ConditionsC condition)
 {
     this.C &= ~condition; this.RemoveExtra((double)condition, 2); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature);
 }
		public void Activate(ConditionsC condition, MabiDictionary extra = null) { this.C |= condition; if (extra != null) this.SetExtra((double)condition, 2, extra); Send.ConditionUpdate(_creature); }
Exemple #13
0
 public void Activate(ConditionsC condition)
 {
     this.C |= condition; Send.ConditionUpdate(_creature);
 }