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); }
/// <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); }
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); }
public bool Has(ConditionsG condition) { return ((this.G & condition) != 0); }
public void Deactivate(ConditionsG condition) { this.G &= ~condition; this.RemoveExtra((double)condition, 6); Send.ConditionUpdate(_creature); this.Changed.Raise(_creature); }
public bool Has(ConditionsG condition) { return((this.G & condition) != 0); }