Ejemplo n.º 1
0
		protected internal virtual BattleFighterBuff createBattleFighterBuff(BattleFighter owner, IBuffAction buffAction)
		{
			BattleFighterBuff _buff = new BattleFighterBuff(owner, buffAction);
			return _buff;
		}
Ejemplo n.º 2
0
		/// <summary>
		/// remove single buff from all collection and reset buff effect
		/// </summary>
		/// <param name="buffId"> </param>
		public virtual void removeSingleBuff(BattleFighterBuff buff)
		{

			int buffId = buff.BuffId;

			removeFromAllBuff(buffId);

			IBuffAction _buffAction = buff.BuffAction;

			BuffTypeHolder _holder = getBuffTypeHolder(_buffAction);

			_holder.removeBuff(_buffAction);

			_buffAction.onRemove(Owner);
		}
Ejemplo n.º 3
0
		public abstract bool needShow(BattleFighterBuff buffInst);
Ejemplo n.º 4
0
		public virtual void putBuff(BattleFighterBuff buff)
		{
			allBuffs[buff.BuffId] = buff;
		}