Exemplo n.º 1
0
 public void Activate(ConditionsG condition, MabiDictionary extra = null)
 {
     this.G |= condition; if (extra != null)
     {
         this.SetExtra((double)condition, 6, extra);
     }
     Send.ConditionUpdate(_creature); this.Changed.Raise(_creature);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Resets all conditions and sends update.
        /// </summary>
        public void Clear()
        {
            this.A = 0;
            this.B = 0;
            this.C = 0;
            this.D = 0;
            this.E = 0;
            this.F = 0;
            this.G = 0;
            lock (_extra)
                _extra.Clear();
            _extraCache = null;

            Send.ConditionUpdate(_creature);
        }
Exemplo n.º 3
0
		public void Activate(ConditionsG condition, MabiDictionary extra = null, int duration = -1) { this.G |= condition; if (extra != null) this.SetExtra((double)condition, 6, extra); if (duration > 0) this.SetDuration((double)condition, 6, duration); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
Exemplo n.º 4
0
		public bool Has(ConditionsG condition) { return ((this.G & condition) != 0); }
Exemplo n.º 5
0
		/// <summary>
		/// Resets all conditions and sends update.
		/// </summary>
		public void Clear()
		{
			this.A = 0;
			this.B = 0;
			this.C = 0;
			this.D = 0;
			this.E = 0;
			this.F = 0;
			this.G = 0;
			lock (_extra)
				_extra.Clear();
			_extraCache = null;

			Send.ConditionUpdate(_creature);
		}
Exemplo n.º 6
0
		public void Deactivate(ConditionsG condition) { this.G &= ~condition; this.RemoveExtra((double)condition, 6); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
Exemplo n.º 7
0
 public void Deactivate(ConditionsG condition)
 {
     this.G &= ~condition; this.RemoveExtra((double)condition, 6); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature);
 }
Exemplo n.º 8
0
 public bool Has(ConditionsG condition)
 {
     return((this.G & condition) != 0);
 }