예제 #1
0
		protected internal virtual BattleFighterBuff createBattleFighterBuff(BattleFighter owner, IBuffAction buffAction)
		{
			BattleFighterBuff _buff = new BattleFighterBuff(owner, buffAction);
			return _buff;
		}
예제 #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);
		}
예제 #3
0
		public abstract bool needShow(BattleFighterBuff buffInst);
예제 #4
0
		public virtual void putBuff(BattleFighterBuff buff)
		{
			allBuffs[buff.BuffId] = buff;
		}