예제 #1
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="_lifetime">How long the status should be applied, in seconds</param>
 /// <param name="_buff">Name of the buff to apply</param>
 /// <param name="_debuff">Name of the debuff to apply</param>
 /// <param name="_effect">Name of the auxiliary effect to apply</param>
 public StatusEffect(float _lifetime, StatusEffectManager.Buffs _buff, StatusEffectManager.Debuffs _debuff, StatusEffectManager.StatusEffects _effect)
 {
     lifetime = _lifetime;
     buff     = _buff;
     debuff   = _debuff;
     effect   = _effect;
     alive    = true;
 }
예제 #2
0
 public void RemoveStatusEffect(StatusEffectManager.Debuffs debuffName)
 {
     for (int i = 0; i < statusEffects.Count; ++i)
     {
         if (statusEffects[i].Debuff == debuffName)
         {
             statusEffects.RemoveAt(i);
         }
     }
 }
예제 #3
0
 public StatusEffect GetStatusEffect(StatusEffectManager.Debuffs debuffName)
 {
     for (int i = 0; i < statusEffects.Count; ++i)
     {
         if (statusEffects[i].Debuff == debuffName)
         {
             return(statusEffects[i]);
         }
     }
     return(null);
 }
예제 #4
0
 public bool ContainsStatusEffect(StatusEffectManager.Debuffs debuffName)
 {
     for (int i = 0; i < statusEffects.Count; ++i)
     {
         if (statusEffects[i].Debuff == debuffName)
         {
             return(true);
         }
     }
     return(false);
 }