Exemplo n.º 1
0
 public void AddEffect(BaseEffect effect, double movesCount)
 {
     effect = effect.Clone();
     foreach (BaseEffect existingEffect in Effects.Keys)
     {
         if (effect.type == existingEffect.type)
         {
             Effects[existingEffect] = movesCount;
             return;
         }
     }
     if (Effects.Count > 0)
     {
         var lastEffect = GetLastEffect();
         lastEffect.wrapper = effect;
         effect.wrappee     = lastEffect;
     }
     effect.effectOwner = this;
     Effects.Add(effect, movesCount);
 }
Exemplo n.º 2
0
 public BaseEffect(BaseEffect otherEffect)
 {
     wrappee = otherEffect.wrappee;
     wrapper = otherEffect.wrapper;
     type    = otherEffect.type;
 }
Exemplo n.º 3
0
 public EffectStatsInterface(BaseEffect _effect, UIStep _prevStep)
 {
     prevStep = _prevStep;
     effect   = _effect;
 }
Exemplo n.º 4
0
 public BaseEffect(BaseEffect _wrappee = null, BaseEffect _wrapper = null)
 {
     wrappee = _wrappee;
     wrapper = _wrapper;
 }