public static bool TryCombineFallSpring(BoardMove first, BoardMove second, out BoardMove result) { foreach (UnitMove move in first) { if (!second.CurrentlyAllowsFallSpring(move)) { result = null; return(false); } } result = new BoardMove(); result.AddRange(first); result.AddRange(second); return(true); }
public BoardMove Clone() { var clone = new BoardMove(); clone.AddRange(this); return(clone); }