Exemple #1
0
 public void breakEffect(Note note)
 {
     if (note.Equals(First))
     {
         First = null;
         Second?.Remove(this);
     }
     else
     {
         Second = null;
         First?.Remove(this);
     }
 }
Exemple #2
0
 public bool validateAction()
 {
     if (effect is null || first is null || second is null)
     {
         return(false);
     }
     if (first.Equals(second))
     {
         return(false);
     }
     if (first.String != second.String)
     {
         return(false);
     }
     return(first.Position.occursDirectlyBefore(second.Position));
 }
Exemple #3
0
 public EffectPosition getPosition(Note note)
 {
     return((note.Equals(First)) ? EffectPosition.After : EffectPosition.Into);
 }