public void breakEffect(Note note) { if (note.Equals(First)) { First = null; Second?.Remove(this); } else { Second = null; First?.Remove(this); } }
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)); }
public EffectPosition getPosition(Note note) { return((note.Equals(First)) ? EffectPosition.After : EffectPosition.Into); }