示例#1
0
 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);
 }
示例#2
0
        public BoardMove Clone()
        {
            var clone = new BoardMove();

            clone.AddRange(this);
            return(clone);
        }