示例#1
0
文件: Frame.cs 项目: skeiya/Bowling
 public static Frame Append(Frame old, Roll roll)
 {
     List<Roll> tmp = new List<Roll>(old._rolls);
     tmp.Add(roll);
     return new Frame(old.GetFrameIndex(), tmp);
 }
示例#2
0
 public static bool IsLastFrame(Frame f)
 {
     return f.GetFrameIndex() == GetCount() - 1;
 }
示例#3
0
 private static bool IsLastFrame(Frame f)
 {
     return f.GetFrameIndex() == FrameCountRule.GetCount() - 1;
 }